From: David Goulet Date: Tue, 29 Nov 2011 18:55:08 +0000 (-0500) Subject: Init pointer to NULL in case of free() X-Git-Tag: v2.0-pre15~68 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=937dde8ee43afc54cbbde5485a9bc594bb7f023e;p=lttng-tools.git Init pointer to NULL in case of free() Signed-off-by: David Goulet --- 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;