From: Mathieu Desnoyers Date: Wed, 20 Mar 2013 20:07:07 +0000 (-0400) Subject: Fix uninitialized has_loglevel variable X-Git-Tag: v2.2.0-rc1~44 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7e2e405c27a467896a9310d492640a624fdd8c4e;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 b6e2ab39..78a4f760 100644 --- a/liblttng-ust/lttng-events.c +++ b/liblttng-ust/lttng-events.c @@ -440,7 +440,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 '*' */