]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/tests_pass_valgrind.c
ccanlint: fix uninitialized variable
[ccan] / 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);
                        }