From 937dde8ee43afc54cbbde5485a9bc594bb7f023e Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 29 Nov 2011 13:55:08 -0500 Subject: [PATCH] Init pointer to NULL in case of free() Signed-off-by: David Goulet --- lttng-sessiond/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lttng-sessiond/main.c b/lttng-sessiond/main.c index 0a78f27ba..996349f3f 100644 --- a/lttng-sessiond/main.c +++ b/lttng-sessiond/main.c @@ -1575,7 +1575,7 @@ static pid_t spawn_consumerd(struct consumer_data *consumer_data) } case LTTNG_CONSUMER32_UST: { - char *tmpnew; + char *tmpnew = NULL; if (consumerd32_libdir[0] != '\0') { char *tmp; -- 2.34.1