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:
Thomas Jaeger 2009-09-20 01:31:59 -04:00 committed by Peter Hutterer
parent 2bb3f0c871
commit 2a890d85e9

View File

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