mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-07 17:52:34 +01:00
test: Check that strdup() does not fail
Warned-by: gcc
This commit is contained in:
parent
8ad7570c20
commit
1eba406021
@ -96,6 +96,7 @@ test_fgetln_multi(void)
|
||||
char *str;
|
||||
|
||||
str = strdup("A\n");
|
||||
assert(str);
|
||||
str[0] += i;
|
||||
|
||||
files[i].line_alloc = str;
|
||||
|
Loading…
Reference in New Issue
Block a user