Missing NULL pointer init in tap.c
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 12 Jul 2013 15:45:09 +0000 (11:45 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 12 Jul 2013 15:45:47 +0000 (11:45 -0400)
Could lead to free() of unitialized pointer.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/lib/tap.c

index a430951193328aca551e34dfa1f3622a9b23ef28..86c89a23b2a77b8ba1b88652b55e8b40da0bba82 100644 (file)
@@ -294,7 +294,7 @@ int
 skip(unsigned int n, char *fmt, ...)
 {
        va_list ap;
-       char *skip_msg;
+       char *skip_msg = NULL;
 
        LOCK;
 
This page took 0.031556 seconds and 4 git commands to generate.