projects
/
ccan
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ccanlint: fix uninitialized variable
[ccan]
/
tools
/
ccanlint
/
tests
/
tests_pass_valgrind.c
diff --git
a/tools/ccanlint/tests/tests_pass_valgrind.c
b/tools/ccanlint/tests/tests_pass_valgrind.c
index 6bb27e875a8976133e988792ef361e76bf090e28..4365f2a60227bc1a259ad4671d23efa72f87f0e9 100644
(file)
--- 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);
}