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:
ce0ffab
)
add an extra check for uci_lookup
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 12 Feb 2008 20:46:50 +0000
(21:46 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 12 Feb 2008 20:46:50 +0000
(21:46 +0100)
list.c
patch
|
blob
|
history
diff --git
a/list.c
b/list.c
index 339ad3e336385b95246aed8dcddbeac92616a42a..7a703b22aa386403ab1f2ef6280e2d7cf3facd0b 100644
(file)
--- a/
list.c
+++ b/
list.c
@@
-236,7
+236,7
@@
int uci_lookup(struct uci_context *ctx, struct uci_element **res, struct uci_pac
UCI_HANDLE_ERR(ctx);
UCI_ASSERT(ctx, res != NULL);
UCI_ASSERT(ctx, p != NULL);
- UCI_ASSERT(ctx, uci_validate_name(section));
+ UCI_ASSERT(ctx,
section &&
uci_validate_name(section));
if (option)
UCI_ASSERT(ctx, uci_validate_name(option));