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 <[email protected]>
---
uclient-fetch.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/uclient-fetch.c b/uclient-fetch.c
index 5f7ac6200bb8..0c7a1232f256 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)
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel