Browse Source

ccanlint: fix uninitialized variable

Rusty Russell 15 years ago
parent
commit
30d5682cc5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tools/ccanlint/tests/tests_pass_valgrind.c

+ 1 - 0
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);
 			output = grab_file(i, "valgrind.log", NULL);
 			if (!output || output[0] == '\0') {
 			if (!output || output[0] == '\0') {
 				err = NULL;
 				err = NULL;
+				i->leak_info = NULL;
 			} else {
 			} else {
 				i->leak_info = get_leaks(output, &err);
 				i->leak_info = get_leaks(output, &err);
 			}
 			}