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:
d65c93f
)
another one
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 31 Jul 2008 16:13:57 +0000
(18:13 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 31 Jul 2008 16:13:57 +0000
(18:13 +0200)
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index c0d46a21ead6b5abb851abfcd7e9483313c11628..e1ef5858700ce4b109cd6a1e345048447212d398 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-136,7
+136,8
@@
int uci_parse_tuple(struct uci_context *ctx, char *str, char **package, char **s
*section = strsep(&str, ".");
*option = NULL;
- *value = NULL;
+ if (value)
+ *value = NULL;
if (!*section)
goto lastval;
@@
-158,7
+159,7
@@
lastval:
goto error;
if (*option && !uci_validate_name(*option))
goto error;
- if (*value && !uci_validate_text(*value))
+ if (
value &&
*value && !uci_validate_text(*value))
goto error;
goto done;