diff options
-rw-r--r-- | settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings.c b/settings.c index 816f73dca..3ff3fecb1 100644 --- a/settings.c +++ b/settings.c @@ -962,7 +962,7 @@ static void SaveList(IniFile *ini, const char *grpname, char **list, int len) if (!group) return; for (i = 0; i != len; i++) { - if (list[i] == '\0') continue; + if (list[i] == NULL || list[i][0] == '\0') continue; if (first) { // add first item to the head of the group item = ini_item_alloc(group, list[i], strlen(list[i])); |