From: Mathieu Desnoyers Date: Wed, 20 Mar 2013 20:07:07 +0000 (-0400) Subject: Fix uninitialized has_loglevel variable X-Git-Tag: v2.1.2~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ab5dd247bd7b07e60325e03338ba498be434d89a;p=lttng-ust.git Fix uninitialized has_loglevel variable Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-events.c b/liblttng-ust/lttng-events.c index 8d316b27..980cfa76 100644 --- a/liblttng-ust/lttng-events.c +++ b/liblttng-ust/lttng-events.c @@ -404,7 +404,7 @@ int lttng_desc_match_wildcard_enabler(const struct lttng_event_desc *desc, struct lttng_enabler *enabler) { int loglevel = 0; - unsigned int has_loglevel; + unsigned int has_loglevel = 0; assert(enabler->type == LTTNG_ENABLER_WILDCARD); /* Compare excluding final '*' */