[lttng-dev] [PATCH lttng-tools] Missing NULL pointer init in tap.c

David Goulet dgoulet at efficios.com
Fri Jul 12 14:13:54 EDT 2013


Merged!

Mathieu Desnoyers:
> Could lead to free() of unitialized pointer.
> 
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
> ---
> diff --git a/tests/utils/tap/tap.c b/tests/utils/tap/tap.c
> index a430951..86c89a2 100644
> --- a/tests/utils/tap/tap.c
> +++ b/tests/utils/tap/tap.c
> @@ -294,7 +294,7 @@ int
>  skip(unsigned int n, char *fmt, ...)
>  {
>  	va_list ap;
> -	char *skip_msg;
> +	char *skip_msg = NULL;
>  
>  	LOCK;
>  



More information about the lttng-dev mailing list