summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-27 22:44:44 +0200
committerFelix Fietkau <nbd@openwrt.org>2008-08-27 22:44:44 +0200
commit793be3e2557cef8e651e482ac4a865b2a8e00599 (patch)
tree1b52011dce410f08049bc47f6fe69662a483efb5
parentead1a3c6b0e27a33ee071e1e0736d440d0fa2740 (diff)
downloaduci-793be3e2557cef8e651e482ac4a865b2a8e00599.tar.gz
fix uci.get()
-rw-r--r--lua/uci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/uci.c b/lua/uci.c
index 2d81a38..5d8490c 100644
--- a/lua/uci.c
+++ b/lua/uci.c
@@ -343,6 +343,9 @@ uci_lua_get_any(lua_State *L, bool all)
err = UCI_ERR_INVAL;
goto error;
}
+ if (!err)
+ return 1;
+
error:
if (s)
free(s);