Browse Source

ccanlint: fix wrong initialization in example compilation.

I moved the code around and missed this.
Rusty Russell 15 years ago
parent
commit
3953aaa384
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/ccanlint/tests/examples_compile.c

+ 2 - 2
tools/ccanlint/tests/examples_compile.c

@@ -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. */