fixes: Make sure invisible cursor is inialized with zero src/mask
This fixes a regression introduced in 9040dab761
.
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
2bb3f0c871
commit
2a890d85e9
|
@ -1049,13 +1049,11 @@ createInvisibleCursor (void)
|
|||
unsigned char *psrcbits, *pmaskbits;
|
||||
CursorMetricRec cm;
|
||||
|
||||
psrcbits = (unsigned char *) xalloc(4);
|
||||
pmaskbits = (unsigned char *) xalloc(4);
|
||||
psrcbits = (unsigned char *) xcalloc(4, 1);
|
||||
pmaskbits = (unsigned char *) xcalloc(4, 1);
|
||||
if (psrcbits == NULL || pmaskbits == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
*psrcbits = 0;
|
||||
*pmaskbits = 0;
|
||||
|
||||
cm.width = 1;
|
||||
cm.height = 1;
|
||||
|
|
Loading…
Reference in New Issue