]> pilppa.com Git - uci.git/commitdiff
fix uci.get()
authorFelix Fietkau <nbd@openwrt.org>
Wed, 27 Aug 2008 20:44:44 +0000 (22:44 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 27 Aug 2008 20:44:44 +0000 (22:44 +0200)
lua/uci.c

index 2d81a38b98c95375ac8302231d4d865e365a8a47..5d8490c1fa35a5cd2dfb4c55356858ae2a87e116 100644 (file)
--- 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);