mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-22 01:20:26 +00:00
Init genericMasks to 0, make sure list is NULL terminated.
This commit is contained in:
parent
c4e850a781
commit
8396bf7c8b
2 changed files with 2 additions and 0 deletions
|
|
@ -5912,6 +5912,7 @@ ExtGrabDevice(ClientPtr client,
|
|||
last->next = xcalloc(1, sizeof(GenericMaskRec));
|
||||
last = last->next;
|
||||
*last = *ge_masks;
|
||||
last->next = NULL;
|
||||
ge_masks = ge_masks->next;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue