diff options
author | Peter Hutterer <peter.hutterer@redhat.com> | 2008-08-08 14:18:01 +0930 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-08-08 16:19:20 +0930 |
commit | d684f5760f40b682a8b879641300abe689a263c5 (patch) | |
tree | 09141513cf8f883454adae5a5770fab2445c93f4 /xkb | |
parent | e00cd54c1ac57ea6e7767e90592200f343d9d08a (diff) |
xkb: actually initialise sli before using it.
Diffstat (limited to 'xkb')
-rw-r--r-- | xkb/xkb.c | 5 |
1 files changed, 5 insertions, 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; |