* src/url.c (test_uri_merge): Fix check

This commit is contained in:
Tim Rühsen 2023-07-01 18:20:32 +02:00
parent 834d090bf6
commit 3583fa0c61

View File

@ -2543,7 +2543,7 @@ test_uri_merge(void)
const struct test_data *t = &test_data[i];
char *result = uri_merge (t->url, t->link);
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);
xfree (result);