From 77580a893283f2bde7ab46496bd3a3d7b2fc6784 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 7 Dec 2020 15:59:24 +0100 Subject: uci: fix -Werror=maybe-uninitialized warning Signed-off-by: Jo-Philipp Wich --- lib/uci.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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) -- cgit v1.2.3