projects
/
project
/
uclient.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
436f9b3
)
uclient-fetch: fix statement may fallt hrough
author
Petr Štetiar
<ynezz@true.cz>
Tue, 8 Dec 2020 16:37:52 +0000
(17:37 +0100)
committer
Petr Štetiar
<ynezz@true.cz>
Fri, 11 Dec 2020 10:17:22 +0000
(11:17 +0100)
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>
uclient-fetch.c
patch
|
blob
|
history
diff --git
a/uclient-fetch.c
b/uclient-fetch.c
index 5f7ac6200bb867690d91468433225820562ad8b3..0c7a1232f2565c96beb8a31fd83c460ebb6d987e 100644
(file)
--- 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)