summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
07d6fd6)
After fix for deleting list elements by index this function was
broken and didn't allow to invoke from command line:
uci set some.fancy.list=''
i.e. list wasn't cleared
Signed-off-by: Krzysztof Kuźnik <k.kuznik@avsystem.com>
- if (ptr->value && ptr->o && ptr->o->type == UCI_TYPE_LIST) {
+ if (ptr->value && *ptr->value && ptr->o && ptr->o->type == UCI_TYPE_LIST) {
if (!sscanf(ptr->value, "%d", &index))
return 1;
if (!sscanf(ptr->value, "%d", &index))
return 1;