mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-08 11:02:24 +01:00
test: Do not pass NULL as the first funopen() argument
Warned-by: gcc -W
This commit is contained in:
parent
731b0a7739
commit
6145b56178
@ -114,7 +114,7 @@ main(int argc, char **argv)
|
|||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
/* Test invalid hooks. */
|
/* Test invalid hooks. */
|
||||||
fp = funopen(&tc, NULL, NULL, NULL, NULL);
|
fp = funopen(NULL, NULL, NULL, NULL, NULL);
|
||||||
assert(fp == NULL);
|
assert(fp == NULL);
|
||||||
assert(errno == EINVAL);
|
assert(errno == EINVAL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user