From: Felix Fietkau Date: Wed, 27 Aug 2008 20:44:44 +0000 (+0200) Subject: fix uci.get() X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=793be3e2557cef8e651e482ac4a865b2a8e00599;p=uci.git fix uci.get() --- 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);