From: David Goulet Date: Tue, 4 Oct 2011 14:54:05 +0000 (-0400) Subject: Fix possible use of uninitialized variable X-Git-Tag: v2.0-pre15~198 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=133842876fe8a87ba184c9ac2b6e004eb388fb73;p=lttng-tools.git Fix possible use of uninitialized variable Signed-off-by: David Goulet --- diff --git a/ltt-sessiond/main.c b/ltt-sessiond/main.c index edeb86d29..46c98a561 100644 --- a/ltt-sessiond/main.c +++ b/ltt-sessiond/main.c @@ -1573,7 +1573,7 @@ static int create_ust_session(struct ltt_session *session, struct lttng_domain *domain) { int ret; - struct ltt_ust_session *lus; + struct ltt_ust_session *lus = NULL; struct ust_app *app; switch (domain->type) { @@ -1585,6 +1585,7 @@ static int create_ust_session(struct ltt_session *session, } break; default: + ret = LTTCOMM_UNKNOWN_DOMAIN; goto error; }