test: Check that strdup() does not fail

Warned-by: gcc
This commit is contained in:
Guillem Jover 2021-11-27 21:09:18 +01:00
parent 8ad7570c20
commit 1eba406021

View File

@ -96,6 +96,7 @@ test_fgetln_multi(void)
char *str;
str = strdup("A\n");
assert(str);
str[0] += i;
files[i].line_alloc = str;