From 6145b561784467bc6a483f48468ba4f6a742e2fe Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 17 Aug 2021 03:14:57 +0200 Subject: [PATCH] test: Do not pass NULL as the first funopen() argument Warned-by: gcc -W --- test/funopen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/funopen.c b/test/funopen.c index 2b34f7e..65c493e 100644 --- a/test/funopen.c +++ b/test/funopen.c @@ -114,7 +114,7 @@ main(int argc, char **argv) size_t i; /* Test invalid hooks. */ - fp = funopen(&tc, NULL, NULL, NULL, NULL); + fp = funopen(NULL, NULL, NULL, NULL, NULL); assert(fp == NULL); assert(errno == EINVAL);