summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-04-09 08:49:26 -0600
committerBrian <brian@yutani.localnet.net>2007-04-09 08:49:26 -0600
commitf9574c3f6bd982f039b4c3ec3bb278cc3d043d29 (patch)
tree672c50518ccd58f683a730671d4c800a68c09f79
parente8292d28e4aeb96f70140ed627c24b6f30b50a80 (diff)
allocate __GLXdisplayPrivate w/ Xcalloc instead of Xmalloc (bug 10569)
-rw-r--r--src/glx/x11/glxext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index 95e7d6f943b..003c5ee4828 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -1246,7 +1246,7 @@ __GLXdisplayPrivate *__glXInitialize(Display* dpy)
__glXUnlock();
return 0;
}
- dpyPriv = (__GLXdisplayPrivate *) Xmalloc(sizeof(__GLXdisplayPrivate));
+ dpyPriv = (__GLXdisplayPrivate *) Xcalloc(1, sizeof(__GLXdisplayPrivate));
if (!dpyPriv) {
__glXUnlock();
Xfree((char*) private);