xkb: actually initialise sli before using it.
This commit is contained in:
parent
e00cd54c1a
commit
d684f5760f
|
@ -3356,6 +3356,11 @@ _XkbSetNamedIndicator(ClientPtr client, DeviceIntPtr dev,
|
||||||
if (rc != Success || !map) /* oh-oh */
|
if (rc != Success || !map) /* oh-oh */
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
sli = XkbFindSrvLedInfo(dev, stuff->ledClass, stuff->ledID,
|
||||||
|
XkbXI_IndicatorsMask);
|
||||||
|
if (!sli)
|
||||||
|
return BadAlloc;
|
||||||
|
|
||||||
namec = mapc = statec = 0;
|
namec = mapc = statec = 0;
|
||||||
extDevReason = 0;
|
extDevReason = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue