summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-09-12 11:09:40 +1000
committerDave Airlie <airlied@redhat.com>2018-09-12 12:26:48 +1000
commit758393951233d1b2520cf4cefd33ec4288a3880a (patch)
treea0697b0132e6b4fe24ecfadaaec33193ebb8db1a /xkb
parentcad3a1a82da3c8421b5cc98af27a779a38b5c709 (diff)
downloadxserver-758393951233d1b2520cf4cefd33ec4288a3880a.tar.gz
xkb: fix what looks to be a copy-paste error with first vs firstMM
Pointed out by coverity. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkb/xkb.c b/xkb/xkb.c
index 0fe6ebf4a..764079506 100644
--- a/xkb/xkb.c
+++ b/xkb/xkb.c
@@ -2570,7 +2570,7 @@ _XkbSetMap(ClientPtr client, DeviceIntPtr dev, xkbSetMapReq * req, char *values)
first = last = 0;
if (change.map.num_modmap_keys > 0) {
firstMM = change.map.first_modmap_key;
- lastMM = first + change.map.num_modmap_keys - 1;
+ lastMM = firstMM + change.map.num_modmap_keys - 1;
}
else
firstMM = lastMM = 0;