]> git.ozlabs.org Git - ccan/commitdiff
ccanlint: append NULL terminator to generated dependencies.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Sep 2010 06:31:32 +0000 (16:01 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Sep 2010 06:31:32 +0000 (16:01 +0930)
Interestingly, valgrind didn't even notice.  But it crashed on (some) PowerPC.

tools/ccanlint/ccanlint.c

index 78518721ef30726c7baf29bf80bd2e6625c472b1..8f4c5fe0aa959c8a410f004307735da78543ac72 100644 (file)
@@ -237,10 +237,10 @@ static void init_tests(void)
        struct btree *keys, *names;
 
 #undef REGISTER_TEST
-#define REGISTER_TEST(name, ...) register_test(&normal_tests, &name, __VA_ARGS__)
+#define REGISTER_TEST(name, ...) register_test(&normal_tests, &name, __VA_ARGS__, NULL)
 #include "generated-normal-tests"
 #undef REGISTER_TEST
-#define REGISTER_TEST(name, ...) register_test(&compulsory_tests, &name, __VA_ARGS__)
+#define REGISTER_TEST(name, ...) register_test(&compulsory_tests, &name, __VA_ARGS__, NULL)
 #include "generated-compulsory-tests"
 
        /* Self-consistency check: make sure no two tests