From 29ff7c6869bc388fcf455c6cb4cd937bb76ee237 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Tue, 14 Jun 2022 19:17:38 +0300 Subject: [PATCH] test_str: fixed harmless sanitizer error --- 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 index a974c24a..f2f4d32c 100644 --- 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++)