projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add extra null pointer check
[project/uci.git]
/
list.c
diff --git
a/list.c
b/list.c
index
5332800
..
d78970c
100644
(file)
--- a/
list.c
+++ b/
list.c
@@
-293,6
+293,7
@@
int uci_set(struct uci_context *ctx, char *package, char *section, char *option,
UCI_HANDLE_ERR(ctx);
UCI_ASSERT(ctx, package != NULL);
UCI_ASSERT(ctx, section != NULL);
+ UCI_ASSERT(ctx, value != NULL);
/*
* look up the package, section and option (if set)