# HG changeset patch # User Matti Hamalainen # Date 1288730018 -7200 # Node ID c6c3825376c9dae2ae3448ca7994ab85ef5fcc70 # Parent d2e3a95c74dfb91310a8787c51ef40d249cf8efb Fix string list parsing and handling in configuration parser. diff -r d2e3a95c74df -r c6c3825376c9 th_config.c --- a/th_config.c Tue Nov 02 21:51:46 2010 +0200 +++ b/th_config.c Tue Nov 02 22:33:38 2010 +0200 @@ -426,8 +426,11 @@ } else if (c == ',') { switch (item->type) { case ITEM_STRING_LIST: + c = -1; + isStart = TRUE; prevMode = parseMode; - parseMode = PM_STRING; + parseMode = PM_NEXT; + nextMode = PM_STRING; break; } } else { @@ -480,7 +483,7 @@ parseMode = PM_NORMAL; break; case ITEM_STRING_LIST: -// th_cfg_add_to_array(item, th_strdup(tmpStr)); + th_llist_append(item->list, th_strdup(tmpStr)); prevMode = parseMode; parseMode = PM_NEXT; nextMode = PM_ARRAY;