projects
/
oweals
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cba7252
)
add a missing nullpointer check
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 5 Feb 2008 04:59:20 +0000
(
05:59
+0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 5 Feb 2008 04:59:20 +0000
(
05:59
+0100)
list.c
patch
|
blob
|
history
diff --git
a/list.c
b/list.c
index e817118472f06db1ef3476b88d93ba3ab8f18881..15f544e0b7aa7f7ff5cfb079a6de80ff5f3c8f7d 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;