mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-05-10 10:26:48 +02: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…
x
Reference in New Issue
Block a user