From 62df685c827276048cdf82ea288351a7aa040c8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 21 Aug 2017 14:41:39 -0400 Subject: [PATCH] Test fix: free() of uninitialized pointer on error path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- tests/lib/test_ctf_writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/test_ctf_writer.c b/tests/lib/test_ctf_writer.c index 0a09e2443..3d24ea41c 100644 --- a/tests/lib/test_ctf_writer.c +++ b/tests/lib/test_ctf_writer.c @@ -98,7 +98,7 @@ static void validate_trace(char *parser_path, char *trace_path) { int ret = 0; - gchar *standard_error; + gchar *standard_error = NULL; gint exit_status; char *argv[] = {parser_path, trace_path, NULL}; -- 2.34.1