summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-12-07 15:59:24 +0100
committerJo-Philipp Wich <jo@mein.io>2020-12-07 15:59:24 +0100
commit77580a893283f2bde7ab46496bd3a3d7b2fc6784 (patch)
treea26feb07c4a683c54d46587067bf07772748a9ff /lib
parentec41d9f23383f1088afcdc6fcde26d179d9b034e (diff)
uci: fix -Werror=maybe-uninitialized warning
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib')
-rw-r--r--lib/uci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/uci.c b/lib/uci.c
index 86bf247..1b4c5db 100644
--- a/lib/uci.c
+++ b/lib/uci.c
@@ -733,6 +733,9 @@ uc_uci_pkg_command(struct uc_state *s, uint32_t off, struct json_object *args, e
ptr.p = p;
rv = uci_revert(*c, &ptr);
break;
+
+ default:
+ rv = UCI_ERR_INVAL;
}
if (rv != UCI_OK)