From: Rusty Russell Date: Sat, 8 Jan 2011 10:13:59 +0000 (+1030) Subject: ccanlint: fix uninitialized variable X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=30d5682cc59801c553d71c2d9ababbbd48578576 ccanlint: fix uninitialized variable --- diff --git a/tools/ccanlint/tests/tests_pass_valgrind.c b/tools/ccanlint/tests/tests_pass_valgrind.c index 6bb27e87..4365f2a6 100644 --- a/tools/ccanlint/tests/tests_pass_valgrind.c +++ b/tools/ccanlint/tests/tests_pass_valgrind.c @@ -121,6 +121,7 @@ static void do_run_tests_vg(struct manifest *m, output = grab_file(i, "valgrind.log", NULL); if (!output || output[0] == '\0') { err = NULL; + i->leak_info = NULL; } else { i->leak_info = get_leaks(output, &err); }