[PATCH] fixes: Make sure invisible cursor is inialized with zero src/mask
Thomas Jaeger
ThJaeger at gmail.com
Sat Sep 19 22:31:59 PDT 2009
This fixes a regression introduced in 9040dab76182d1a019ca7fef7b29733d2c199e61.
Signed-off-by: Thomas Jaeger <ThJaeger at gmail.com>
---
xfixes/cursor.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/xfixes/cursor.c b/xfixes/cursor.c
index 0c70660..aac90e3 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;
--
1.6.3.3
--=-i7clml9HA+BgYSotevil--
More information about the xorg-devel
mailing list