projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lua: additionally return name when looking up sections
[project/uci.git]
/
list.c
diff --git
a/list.c
b/list.c
index 0d00f81b424bc6985360c4c3528b6f2781ee8051..321861c8eb7d741c17a1cc764e4e648635640b13 100644
(file)
--- 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 *