mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-02 11:27:48 +00:00
14 lines
398 B
Diff
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);
|