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-Tag: v2.0.0-pre4~122 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=67f90ff85934cc89829fec6a766b7124ff949261 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 0a09e244..3d24ea41 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};