mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-08 11:02:24 +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;
|
char *str;
|
||||||
|
|
||||||
str = strdup("A\n");
|
str = strdup("A\n");
|
||||||
|
assert(str);
|
||||||
str[0] += i;
|
str[0] += i;
|
||||||
|
|
||||||
files[i].line_alloc = str;
|
files[i].line_alloc = str;
|
||||||
|
Loading…
Reference in New Issue
Block a user