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
parent
c19661b965
commit
615291f1f4
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue