From 41f1018897b78f79faf75df6b27efaf472f9ae0e Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 8 Sep 2017 12:16:13 +0300 Subject: [PATCH] expr: paper over a maybe-uninitialized warning Signed-off-by: Ran Benita --- src/xkbcomp/expr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xkbcomp/expr.c b/src/xkbcomp/expr.c index 8b15c1c..3ff3c18 100644 --- a/src/xkbcomp/expr.c +++ b/src/xkbcomp/expr.c @@ -510,8 +510,8 @@ ExprResolveMaskLookup(struct xkb_context *ctx, const ExprDef *expr, unsigned int *val_rtrn, IdentLookupFunc lookup, const void *lookupPriv) { - bool ok = 0; - unsigned int l, r; + bool ok = false; + unsigned int l = 0, r = 0; int v; ExprDef *left, *right; const char *bogus = NULL;