mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user