pending_conn_info->chan = channel;
pending_conn_info->conn_cb = cb;
g_strlcpy(pending_conn_info->address, address, BT_ADDRESS_STRING_SIZE);
- g_strlcpy(pending_conn_info->uuid, remote_uuid, BT_UUID_STRING_SIZE);
+
+ if (remote_uuid != NULL)
+ g_strlcpy(pending_conn_info->uuid, remote_uuid, BT_UUID_STRING_SIZE);
+ else
+ memset(pending_conn_info->uuid, 0x00, BT_UUID_STRING_SIZE);
BT_DBG("-");
return BLUETOOTH_ERROR_NONE;