From: Brian Date: Mon, 9 Apr 2007 14:49:26 +0000 (-0600) Subject: allocate __GLXdisplayPrivate w/ Xcalloc instead of Xmalloc (bug 10569) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9574c3f6bd982f039b4c3ec3bb278cc3d043d29;p=mesa.git allocate __GLXdisplayPrivate w/ Xcalloc instead of Xmalloc (bug 10569) --- 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);