mesa: Branch 'master'

Brian Paul brianp at kemper.freedesktop.org
Mon Apr 9 07:49:31 PDT 2007


 src/glx/x11/glxext.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree f9574c3f6bd982f039b4c3ec3bb278cc3d043d29 (from e8292d28e4aeb96f70140ed627c24b6f30b50a80)
Author: Brian <brian at yutani.localnet.net>
Date:   Mon Apr 9 08:49:26 2007 -0600

    allocate __GLXdisplayPrivate w/ Xcalloc instead of Xmalloc (bug 10569)

diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index 95e7d6f..003c5ee 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -1246,7 +1246,7 @@ __GLXdisplayPrivate *__glXInitialize(Dis
 	__glXUnlock();
 	return 0;
     }
-    dpyPriv = (__GLXdisplayPrivate *) Xmalloc(sizeof(__GLXdisplayPrivate));
+    dpyPriv = (__GLXdisplayPrivate *) Xcalloc(1, sizeof(__GLXdisplayPrivate));
     if (!dpyPriv) {
 	__glXUnlock();
 	Xfree((char*) private);


More information about the mesa-commit mailing list