projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add an extra check for uci_lookup
[project/uci.git]
/
list.c
diff --git
a/list.c
b/list.c
index
339ad3e
..
7a703b2
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));