test: test_launch_get(): Fix typo and remove redundant call

This commit is contained in:
Albert S. 2022-12-27 13:14:39 +01:00
γονέας 7b859d0aed
υποβολή f662398ac3
1 αρχεία άλλαξαν με 2 προσθήκες και 2 διαγραφές

4
test.c

@ -618,9 +618,9 @@ int test_launch_get()
size_t n = 0;
char *content = exile_launch_get(&params, &n);
unsigned int len = strlen(LAUNCH_GET_TEST_STR);
if(n != strlen(LAUNCH_GET_TEST_STR))
if(n != len)
{
LOG("Lenght does does not match: %lu vs %u\n", n, len);
LOG("Lenght does not match: %lu vs %u\n", n, len);
return 1;
}
if(strcmp(content, LAUNCH_GET_TEST_STR) != 0)