From 600ce9acc5efadd699243f889462b982b83052f2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 23 Aug 2008 11:10:41 +0200 Subject: [PATCH] add some missing initializations --- lua/uci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/uci.c b/lua/uci.c index 6e86e9a..b64c91f 100644 --- a/lua/uci.c +++ b/lua/uci.c @@ -105,7 +105,7 @@ done: static int lookup_args(lua_State *L, struct uci_ptr *ptr, char **buf) { - char *s; + char *s = NULL; int n; n = lua_gettop(L); @@ -281,7 +281,7 @@ uci_lua_get_any(lua_State *L, bool all) { struct uci_element *e = NULL; struct uci_ptr ptr; - char *s; + char *s = NULL; int err = UCI_ERR_NOTFOUND; if (lookup_args(L, &ptr, &s)) -- 2.11.0