diff options
| author | Dave Airlie <airlied@redhat.com> | 2018-09-12 11:09:40 +1000 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2018-09-12 12:26:48 +1000 |
| commit | 758393951233d1b2520cf4cefd33ec4288a3880a (patch) | |
| tree | a0697b0132e6b4fe24ecfadaaec33193ebb8db1a /xkb | |
| parent | cad3a1a82da3c8421b5cc98af27a779a38b5c709 (diff) | |
| download | xserver-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.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; |
