Files
wlan-ap/feeds/ucentral/ucode/patches/000-fix.patch
2021-03-25 12:19:47 +01:00

14 lines
398 B
Diff

diff --git a/lib/uci.c b/lib/uci.c
index 86bf247..3906b6b 100644
--- a/lib/uci.c
+++ b/lib/uci.c
@@ -706,7 +706,7 @@ uc_uci_pkg_command(struct uc_state *s, uint32_t off, struct json_object *args, e
struct uci_element *e, *tmp;
struct uci_package *p;
struct uci_ptr ptr = {};
- int rv, res = UCI_OK;
+ int rv = 0, res = UCI_OK;
if (cmd != CMD_REVERT && conf)
err_return(UCI_ERR_INVAL);