]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
test: Do not pass NULL as the first funopen() argument
authorGuillem Jover <guillem@hadrons.org>
Tue, 17 Aug 2021 01:14:57 +0000 (03:14 +0200)
committerGuillem Jover <guillem@hadrons.org>
Sat, 27 Nov 2021 04:06:14 +0000 (05:06 +0100)
Warned-by: gcc -W
test/funopen.c

index 2b34f7e6c3318f6d30ec0d6ffad9a464fa54763c..65c493e5e0ce3aa66cb087f3e12a1316aa374075 100644 (file)
@@ -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);