allocate __GLXdisplayPrivate w/ Xcalloc instead of Xmalloc (bug 10569)
authorBrian <brian@yutani.localnet.net>
Mon, 9 Apr 2007 14:49:26 +0000 (08:49 -0600)
committerBrian <brian@yutani.localnet.net>
Mon, 9 Apr 2007 14:49:26 +0000 (08:49 -0600)
src/glx/x11/glxext.c

index 95e7d6f943b6b23d242ac71fa86f397eebc9714a..003c5ee48282c90427ad3432e2ee3d164891e43f 100644 (file)
@@ -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);