summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-08-08 14:18:01 +0930
committerPeter Hutterer <peter.hutterer@redhat.com>2008-08-08 16:19:20 +0930
commitd684f5760f40b682a8b879641300abe689a263c5 (patch)
tree09141513cf8f883454adae5a5770fab2445c93f4
parente00cd54c1ac57ea6e7767e90592200f343d9d08a (diff)
xkb: actually initialise sli before using it.
-rw-r--r--xkb/xkb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xkb/xkb.c b/xkb/xkb.c
index 56be6e2ab..754641b15 100644
--- a/xkb/xkb.c
+++ b/xkb/xkb.c
@@ -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;