diff options
author | DoHyun Pyun <dh79.pyun@samsung.com> | 2016-12-08 09:06:29 +0900 |
---|---|---|
committer | Pyun DoHyun <dh79.pyun@samsung.com> | 2016-12-07 16:24:41 -0800 |
commit | fb890425df333f1cd8abf784cf90dd8fc2e5cae9 (patch) | |
tree | 2ae21d2d313a4fbb98faf0d5371d8b674d5297b6 | |
parent | dd96c7fe50be01dea3817335bd08d5e9dfc18eef (diff) | |
download | bluetooth-fb890425df333f1cd8abf784cf90dd8fc2e5cae9.tar.gz bluetooth-fb890425df333f1cd8abf784cf90dd8fc2e5cae9.tar.bz2 bluetooth-fb890425df333f1cd8abf784cf90dd8fc2e5cae9.zip |
Fix the svace issue
Change-Id: I71eba60a399d3892da3490ae20c944fce5636f22
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
-rw-r--r-- | src/bluetooth-common.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bluetooth-common.c b/src/bluetooth-common.c index 050a947..764187b 100644 --- a/src/bluetooth-common.c +++ b/src/bluetooth-common.c @@ -2214,10 +2214,7 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us for (char_list = svc->characteristics; char_list; char_list = g_slist_next(char_list)) { bt_gatt_characteristic_s *chr = (bt_gatt_characteristic_s *)char_list->data; - if (chr == NULL) - continue; - - if (chr->path && strcmp(char_val->char_handle, chr->path) == 0) { + if (chr && g_strcmp0(char_val->char_handle, chr->path) == 0) { g_free(chr->value); chr->value = NULL; if (char_val->val_len > 0) |