summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--btif/src/btif_storage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/btif/src/btif_storage.c b/btif/src/btif_storage.c
index 9ed6e9e..956bcb4 100644
--- a/btif/src/btif_storage.c
+++ b/btif/src/btif_storage.c
@@ -257,6 +257,8 @@ static void btif_in_split_uuids_string_to_list(char *str, bt_uuid_t *p_uuid,
do
{
p_needle = strchr(p_start, ';');
+ if (!p_needle)
+ break;
memset(buf, 0, sizeof(buf));
strncpy(buf, p_start, (p_needle-p_start));
string_to_uuid(buf, p_uuid + num);