fix uci.get()
[project/uci.git] / lua / uci.c
index 2d81a38..5d8490c 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);