From: Jérémie Galarneau Date: Mon, 21 Aug 2017 18:41:39 +0000 (-0400) Subject: Test fix: free() of uninitialized pointer on error path X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=62df685c827276048cdf82ea288351a7aa040c8e;p=deliverable%2Fbabeltrace.git Test fix: free() of uninitialized pointer on error path Signed-off-by: Jérémie Galarneau --- 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};