commit 29ff7c6869bc388fcf455c6cb4cd937bb76ee237 parent 6c5dd2f23d3be9e8a61846f033d2ae37c51f880f Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Tue, 14 Jun 2022 19:17:38 +0300 test_str: fixed harmless sanitizer error Diffstat:
| M | src/microhttpd/test_str.c | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/test_str.c b/src/microhttpd/test_str.c @@ -4342,8 +4342,10 @@ check_str_from_uint8_pad (void) } for (pad = 0; pad <= 3; pad++) { - size_t table_num = pad - 1; - if (0 == pad) + size_t table_num; + if (0 != pad) + table_num = pad - 1; + else table_num = 0; for (i = 0; i <= 255; i++)