diff mbox series

[uclient,05/12] uclient-fetch: fix statement may fallt hrough

Message ID 20201210154759.1114-6-ynezz@true.cz
State Accepted
Delegated to: Petr Štetiar
Headers show
Series fixes, improvements and CI | expand

Commit Message

Petr Štetiar Dec. 10, 2020, 3:47 p.m. UTC
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 | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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)