summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-09-12 11:09:40 +1000
committerOlivier Fourdan <ofourdan@redhat.com>2018-10-04 17:26:44 +0200
commitfcbdb7c8b0d7bcc6a85e0beb2ce1dba76803486b (patch)
tree30a4a0643dc4abd8336efe970c951783427b844a
parent83ef02839ce8982c2e841bc400abddbeb620481d (diff)
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> (cherry picked from commit 758393951233d1b2520cf4cefd33ec4288a3880a)
-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;