summaryrefslogtreecommitdiff
path: root/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'list.c')
-rw-r--r--list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/list.c b/list.c
index f47b5a8..f3a9ed6 100644
--- a/list.c
+++ b/list.c
@@ -559,7 +559,7 @@ int uci_delete(struct uci_context *ctx, struct uci_ptr *ptr)
UCI_ASSERT(ctx, ptr->s);
- 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;