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>
This commit is contained in:
Dave Airlie 2018-09-12 11:09:40 +10:00
parent cad3a1a82d
commit 7583939512
1 changed files with 1 additions and 1 deletions

View File

@ -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;