projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add a missing nullpointer check
[project/uci.git]
/
list.c
diff --git
a/list.c
b/list.c
index
e817118
..
15f544e
100644
(file)
--- a/
list.c
+++ b/
list.c
@@
-218,6
+218,8
@@
int uci_lookup(struct uci_context *ctx, struct uci_element **res, struct uci_pac
if (option) {
s = uci_to_section(e);
e = uci_lookup_list(ctx, &s->options, option);
+ if (!e)
+ goto notfound;
}
*res = e;