Test fix: free() of uninitialized pointer on error path
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 21 Aug 2017 18:41:39 +0000 (14:41 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 21 Aug 2017 21:02:23 +0000 (17:02 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/lib/test_ctf_writer.c

index 0a09e2443fd74dfb4991df0c210c4b6a32ec9e59..3d24ea41c8c09fa2a806c9fc7c00937e276a50a8 100644 (file)
@@ -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};
 
This page took 0.026102 seconds and 4 git commands to generate.