diff options
author | Thomas Jaeger <ThJaeger@gmail.com> | 2009-09-20 01:31:59 -0400 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-09-20 19:15:52 +1000 |
commit | 2a890d85e923e1da0331b02e58e95f98b11f5de0 (patch) | |
tree | 7f459079f8997a818c428fbd3f21e8bd91817799 | |
parent | 2bb3f0c87119e73157141431d7c00ab104d4b34b (diff) |
fixes: Make sure invisible cursor is inialized with zero src/mask
This fixes a regression introduced in 9040dab76182d1a019ca7fef7b29733d2c199e61.
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | xfixes/cursor.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xfixes/cursor.c b/xfixes/cursor.c index 0c706600e..aac90e393 100644 --- a/xfixes/cursor.c +++ b/xfixes/cursor.c @@ -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; |