g_ascii_strcasecmp.
Change-Id: Iec3f82a5b6d9dec394b4cdcfd34e09693efec36e
Signed-off-by: Abhishek Chandra <abhishek.ch@samsung.com>
if (uuid_value) {
for (i = 0; uuid_value[i] != NULL; i++) {
BT_DBG("Remote uuids %s", uuid_value[i]);
if (uuid_value) {
for (i = 0; uuid_value[i] != NULL; i++) {
BT_DBG("Remote uuids %s", uuid_value[i]);
- if (g_ascii_strcasecmp(uuid_value[i], remote_uuid) == 0) {
- result = BLUETOOTH_ERROR_NONE;
- goto done;
+ if (uuid_value[i] == NULL) {
+ BT_ERR("_bt_discover_service_uuids Error Parameter are NULL..\n");
+ continue;
+ } else if (g_ascii_strcasecmp(uuid_value[i], remote_uuid) == 0) {
+ result = BLUETOOTH_ERROR_NONE;
+ goto done;
if (g_strv_length(split_string) < 3)
continue;
if (g_strv_length(split_string) < 3)
continue;
- if (g_ascii_strcasecmp(split_string[2], net_address) == 0) {
+ if (split_string[2] == NULL) {
+ BT_ERR("__bt_get_net_profile Error Parameter are NULL..\n");
+ continue;
+ } else if (g_ascii_strcasecmp(split_string[2], net_address) == 0) {
BT_DBG("matched profile");
g_strfreev(split_string);
return profile_h;
BT_DBG("matched profile");
g_strfreev(split_string);
return profile_h;