Commit 13911ef7 authored by Rusty Russell's avatar Rusty Russell

ccanlint: fix uninitialized variables in tests_pass_valgrind.

We weren't initializing the leak_info field when the test was marked
FAIL in _info (as in tdb2).
parent ccf01ebb
......@@ -165,8 +165,10 @@ static void do_run_tests_vg(struct manifest *m,
options = concat(score,
per_file_options(&tests_pass_valgrind,
i));
if (streq(options, "FAIL"))
if (streq(options, "FAIL")) {
i->leak_info = NULL;
continue;
}
if (keep)
talloc_set_destructor(i->valgrind_log, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment