bluetooth-frwk-0.3.0/bt-api/bt-common.c:1406:19: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
1406 | if (str_list[0] != '\0')
| ^~
Change-Id: Ie1ace3bcb151477af7d60e9389bd44f1b5f802f9
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
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);
}
return BLUETOOTH_ERROR_NONE;
}
-