mirror of
https://github.com/mirror/wget.git
synced 2026-08-22 19:03:27 +08:00
* src/url.c (test_uri_merge): Fix check
This commit is contained in:
@@ -2543,7 +2543,7 @@ test_uri_merge(void)
|
|||||||
const struct test_data *t = &test_data[i];
|
const struct test_data *t = &test_data[i];
|
||||||
char *result = uri_merge (t->url, t->link);
|
char *result = uri_merge (t->url, t->link);
|
||||||
bool ok = strcmp (result, t->expected) == 0;
|
bool ok = strcmp (result, t->expected) == 0;
|
||||||
if (ok)
|
if (!ok)
|
||||||
return aprintf ("test_uri_merge [%u]: expected '%s', got '%s'", i, t->expected, result);
|
return aprintf ("test_uri_merge [%u]: expected '%s', got '%s'", i, t->expected, result);
|
||||||
|
|
||||||
xfree (result);
|
xfree (result);
|
||||||
|
|||||||
Reference in New Issue
Block a user