summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2020-12-08 17:37:52 +0100
committerPetr Štetiar <ynezz@true.cz>2020-12-11 11:17:22 +0100
commit66b4420856a7eb2c5a9f9a7acdb7e796ed807b17 (patch)
tree67cc2ce008f9198628bfda5b453190c8370f5d9f
parent436f9b3af2adde11526b4f281951aed6c5d48e6e (diff)
downloaduclient-66b4420856a7eb2c5a9f9a7acdb7e796ed807b17.tar.gz
uclient-fetch: fix statement may fallt hrough
Fixes following issue reported by clang-12 static analyzer: uclient-fetch.c:228:6: error: this statement may fall through [-Werror=implicit-fallthrough=] if (sscanf(blobmsg_get_string(tb[H_RANGE]), ^ uclient-fetch.c:236:2: note: here case 204: ^~~~ Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r--uclient-fetch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/uclient-fetch.c b/uclient-fetch.c
index 5f7ac62..0c7a123 100644
--- a/uclient-fetch.c
+++ b/uclient-fetch.c
@@ -233,6 +233,7 @@ static void header_done_cb(struct uclient *cl)
error_ret = 8;
break;
}
+ /* fall through */
case 204:
case 200:
if (no_output)