diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-08-11 10:17:02 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-08-11 10:33:24 +0300 |
commit | a7b1ac9207f1c001feea0ca175d646380d0f5080 (patch) | |
tree | 5784ac216ea237d56a78dc73de04b83d407ef2b5 /android/tester-hdp.c | |
parent | f034df61a61d0f2f047a9390303bba7c07db0354 (diff) | |
download | bluez-a7b1ac9207f1c001feea0ca175d646380d0f5080.tar.gz |
android/tester: Fix using uninitialized variable
Fix typo not initializing variable. Silence warnings:
...
/android/tester-hdp.c: 71 in create_app()
/android/tester-hdp.c: 97 in create_app()
...
>>> Using uninitialized value "mdep2". Field
>>> "mdep2.mdep_description" is uninitialized.
71 reg->mdep_cfg[1] = mdep2;
...
>>> Using uninitialized value "mdep2". Field
>>> "mdep2.mdep_description" is uninitialized.
97 reg->mdep_cfg[1] = mdep2;
...
Diffstat (limited to 'android/tester-hdp.c')
-rw-r--r-- | android/tester-hdp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android/tester-hdp.c b/android/tester-hdp.c index 9193609d1..bfe8a9928 100644 --- a/android/tester-hdp.c +++ b/android/tester-hdp.c @@ -43,8 +43,9 @@ static bthl_reg_param_t *create_app(hdp_app_reg_type type) mdep1.data_type = 4100; mdep1.mdep_description = "pulse-oximeter"; + mdep2.data_type = 4100; - mdep1.mdep_description = "pulse-oximeter"; + mdep2.mdep_description = "pulse-oximeter"; switch (type) { case HDP_APP_SINK_RELIABLE: |