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 7583939512
)
This commit is contained in:
parent
83ef02839c
commit
fcbdb7c8b0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user