diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-12-07 15:59:24 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-12-07 15:59:24 +0100 |
commit | 77580a893283f2bde7ab46496bd3a3d7b2fc6784 (patch) | |
tree | a26feb07c4a683c54d46587067bf07772748a9ff /lib/uci.c | |
parent | ec41d9f23383f1088afcdc6fcde26d179d9b034e (diff) |
uci: fix -Werror=maybe-uninitialized warning
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib/uci.c')
-rw-r--r-- | lib/uci.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |