diff options
author | Felix Fietkau <nbd@pi.lan> | 2008-08-23 11:10:41 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@pi.lan> | 2008-08-23 11:10:41 +0200 |
commit | 600ce9acc5efadd699243f889462b982b83052f2 (patch) | |
tree | dcf8aff3464641f20feeef41e82d4402d97a26c7 | |
parent | 2e9f26e23be4d77997de4dfbc9bc49f0ead5c595 (diff) | |
download | uci-600ce9acc5efadd699243f889462b982b83052f2.tar.gz |
add some missing initializations
-rw-r--r-- | lua/uci.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) |