diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-08-27 16:45:56 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-08-27 16:45:56 +0200 |
commit | a5256582f5a554c0cbcf45d19bb751e60ea42ce9 (patch) | |
tree | 1ce8796f1538ed86c08c5a9e261f6bde5b7221e1 | |
parent | 289e14f9fa5472589b85bdae102aece71d858ecd (diff) | |
download | uci-a5256582f5a554c0cbcf45d19bb751e60ea42ce9.tar.gz |
fix sanity checks for uci.set to be able to create new sections
-rw-r--r-- | lua/uci.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -440,7 +440,7 @@ uci_lua_set(lua_State *L) if (err) goto error; - if ((ptr.s == NULL) || (ptr.value == NULL)) { + if (((ptr.s == NULL) && (ptr.option != NULL)) || (ptr.value == NULL)) { err = UCI_ERR_INVAL; goto error; } |