Commit 6145b561784467bc6a483f48468ba4f6a742e2fe

Guillem Jover 2021-08-17T03:14:57

test: Do not pass NULL as the first funopen() argument Warned-by: gcc -W

1
2
3
4
5
6
7
8
9
10
11
12
13
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);