From: Rusty Russell Date: Thu, 4 Nov 2010 10:11:44 +0000 (+1030) Subject: ccanlint: fix wrong initialization in example compilation. X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=3953aaa384210378777cc06f5e7d7f40e44a20e8;ds=sidebyside ccanlint: fix wrong initialization in example compilation. I moved the code around and missed this. --- diff --git a/tools/ccanlint/tests/examples_compile.c b/tools/ccanlint/tests/examples_compile.c index f9a919a1..88530e2b 100644 --- a/tools/ccanlint/tests/examples_compile.c +++ b/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. */