From 75d33f4ef9aa459b7b32bb5421c57ec9320910d0 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Tue, 17 Dec 2019 00:15:28 -0800 Subject: [PATCH] Fixed all colon entries --- src/wofi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wofi.c b/src/wofi.c index 98b2ff0..c6bf37f 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -116,6 +116,9 @@ static char* parse_images(WofiPropertyBox* box, const char* text, bool create_wi char* save_ptr; char* str = strtok_r(tmp, ":", &save_ptr); do { + if(str == NULL) { + break; + } if(map_contains(mode_map, str) || data) { struct node* node = malloc(sizeof(struct node)); node->str = str;