ccanlint: fix wrong initialization in example compilation.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 4 Nov 2010 10:11:44 +0000 (20:41 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 4 Nov 2010 10:11:44 +0000 (20:41 +1030)
I moved the code around and missed this.

tools/ccanlint/tests/examples_compile.c

index f9a919a1bfcf7d83748d026e79ec8eb2dd278601..88530e2b270bb00821454103bbc0dec8c7839985 100644 (file)
@@ -446,8 +446,8 @@ static void *build_examples(struct manifest *m, bool keep,
 
        examples_compile.total_score = 0;
        list_for_each(&m->examples, i, list) {
-               char *ret, *ret1 = NULL, *ret2;
-               struct ccan_file *mangle1 = NULL, *mangle2;
+               char *ret, *ret1, *ret2 = NULL;
+               struct ccan_file *mangle1, *mangle2 = NULL;
 
                examples_compile.total_score++;
                /* Simplify our dumb parsing. */