mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-18 07:18:28 +02:00
xkb: actually initialise sli before using it.
This commit is contained in:
parent
75c0e60c70
commit
16f6720b19
1 changed files with 5 additions and 0 deletions
|
|
@ -3356,6 +3356,11 @@ _XkbSetNamedIndicator(ClientPtr client, DeviceIntPtr dev,
|
|||
if (rc != Success || !map) /* oh-oh */
|
||||
return rc;
|
||||
|
||||
sli = XkbFindSrvLedInfo(dev, stuff->ledClass, stuff->ledID,
|
||||
XkbXI_IndicatorsMask);
|
||||
if (!sli)
|
||||
return BadAlloc;
|
||||
|
||||
namec = mapc = statec = 0;
|
||||
extDevReason = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue