ccanlint: fix uninitialized variable
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 8 Jan 2011 10:13:59 +0000 (20:43 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Sat, 8 Jan 2011 10:13:59 +0000 (20:43 +1030)
tools/ccanlint/tests/tests_pass_valgrind.c

index 6bb27e875a8976133e988792ef361e76bf090e28..4365f2a60227bc1a259ad4671d23efa72f87f0e9 100644 (file)
@@ -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);
                        }