Commit 02ba10f7 authored by Tim Rühsen's avatar Tim Rühsen

* unit-tests/test.c (test_stringmap): Fix warning (shadowed variable)

parent e4c660eb
Pipeline #42282082 failed with stages
in 66 minutes and 51 seconds
......@@ -1862,9 +1862,9 @@ static void test_stringmap(void)
iter = wget_stringmap_iterator_alloc(m);
for (it = 0; (skey = wget_stringmap_iterator_next(iter, &val)); it++) {
int n = atoi(skey + 30), m = atoi(val);
int x = atoi(skey + 30), y = atoi(val);
if (!(c_isdigit(*val) && n >= 0 && n == m)) {
if (!(c_isdigit(*val) && x >= 0 && x == y)) {
failed++;
info_printf("key/value don't match (%s | %s)\n", key, val);
} else ok++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment