projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix the coverity issue (Dereference after null check)
[platform/core/connectivity/bluetooth-frwk.git]
/
bt-api
/
bt-common.c
diff --git
a/bt-api/bt-common.c
b/bt-api/bt-common.c
index
d329b6c
..
a4dbd38
100644
(file)
--- a/
bt-api/bt-common.c
+++ b/
bt-api/bt-common.c
@@
-1403,7
+1403,7
@@
void _bt_print_api_caller_name(void)
if (fgets(buf, 256, fp) != NULL) {
str_list = g_strsplit(buf, " ", -1);
- if (str_list[0] !=
'\0'
)
+ if (str_list[0] !=
NULL
)
BT_INFO("Caller : %s", str_list[0]);
g_strfreev(str_list);
}
@@
-2507,4
+2507,3
@@
BT_EXPORT_API int bluetooth_unregister_callback(void)
return BLUETOOTH_ERROR_NONE;
}
-