summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2012-01-05 14:20:35 +0000
committerRob Bradford <rob@linux.intel.com>2012-01-05 14:24:11 +0000
commit615291f1f448ceafef778c9336d81617d9e32dd2 (patch)
tree9782e74d1a9b9890e2925404502194979bc11b86
parentc19661b965c0058a525f439abd7ac4c5a3532c7d (diff)
xkbcomp: Silence warning of return of uninitialised valuefor-weston-0.85
Some routes through HandleGeometryVar do not set a return value. Set a default value for the return variable to avoid returning an uninitialised value.
-rw-r--r--src/xkbcomp/geometry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xkbcomp/geometry.c b/src/xkbcomp/geometry.c
index ae3f6bc..7dde6f8 100644
--- a/src/xkbcomp/geometry.c
+++ b/src/xkbcomp/geometry.c
@@ -2119,7 +2119,7 @@ HandleGeometryVar(VarDef * stmt, struct xkb_desc * xkb, GeometryInfo * info)
ExprDef *ndx;
DoodadInfo *di;
uint32_t *pField = NULL;
- int ret;
+ int ret = True; /* default to no error */
if (ExprResolveLhs(stmt->name, &elem, &field, &ndx) == 0)
return 0; /* internal error, already reported */