diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-06-14 19:17:38 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-06-14 19:17:38 +0300 |
commit | 29ff7c6869bc388fcf455c6cb4cd937bb76ee237 (patch) | |
tree | a9ddf66d841c9b0407aed691dcf641ca91383e55 /src | |
parent | 6c5dd2f23d3be9e8a61846f033d2ae37c51f880f (diff) | |
download | libmicrohttpd-29ff7c6869bc388fcf455c6cb4cd937bb76ee237.tar.gz libmicrohttpd-29ff7c6869bc388fcf455c6cb4cd937bb76ee237.zip |
test_str: fixed harmless sanitizer error
Diffstat (limited to 'src')
-rw-r--r-- | src/microhttpd/test_str.c | 6 |
1 files 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) | |||
4342 | } | 4342 | } |
4343 | for (pad = 0; pad <= 3; pad++) | 4343 | for (pad = 0; pad <= 3; pad++) |
4344 | { | 4344 | { |
4345 | size_t table_num = pad - 1; | 4345 | size_t table_num; |
4346 | if (0 == pad) | 4346 | if (0 != pad) |
4347 | table_num = pad - 1; | ||
4348 | else | ||
4347 | table_num = 0; | 4349 | table_num = 0; |
4348 | 4350 | ||
4349 | for (i = 0; i <= 255; i++) | 4351 | for (i = 0; i <= 255; i++) |