diff options
author | Dave Airlie <airlied@redhat.com> | 2018-09-12 11:09:40 +1000 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2018-10-04 17:26:44 +0200 |
commit | fcbdb7c8b0d7bcc6a85e0beb2ce1dba76803486b (patch) | |
tree | 30a4a0643dc4abd8336efe970c951783427b844a | |
parent | 83ef02839ce8982c2e841bc400abddbeb620481d (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |