xkbcomp: Silence warning of return of uninitialised value

Some routes through HandleGeometryVar do not set a return value. Set a default
value for the return variable to avoid returning an uninitialised value.
master
Rob Bradford 2012-01-05 14:20:35 +00:00
parent c19661b965
commit 615291f1f4
1 changed files with 1 additions and 1 deletions

View File

@ -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 */