X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=list.c;h=f3a9ed6fa8566a8b30f83bbf61ba371b42ade08c;hp=f47b5a83655729e00d46ba6b73daf852f453f50c;hb=b42ee8f21842fab41a4cdf27960000bb1b3f42a7;hpb=07d6fd66f6a20e35490bc8b55d26fdb389016120 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;