X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=list.c;h=321861c8eb7d741c17a1cc764e4e648635640b13;hp=0d00f81b424bc6985360c4c3528b6f2781ee8051;hb=a6a745338cd004a88edaaace5ca145a4411cdda9;hpb=ecf0ed555ebc1b8e5b6aba54bb06a907bb4aecf2 diff --git a/list.c b/list.c index 0d00f81..321861c 100644 --- a/list.c +++ b/list.c @@ -431,11 +431,12 @@ uci_lookup_ptr(struct uci_context *ctx, struct uci_ptr *ptr, char *str, bool ext complete: ptr->flags |= UCI_LOOKUP_COMPLETE; abort: - return 0; + return UCI_OK; notfound: UCI_THROW(ctx, UCI_ERR_NOTFOUND); - return 0; + /* not a chance here */ + return UCI_ERR_NOTFOUND; } __private struct uci_element *