dri: alloc __DRIscreen object with calloc()
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 10 Nov 2008 19:37:08 +0000 (12:37 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 10 Nov 2008 22:06:13 +0000 (15:06 -0700)
Conflicts:
        src/mesa/drivers/dri/common/dri_util.c

src/mesa/drivers/dri/common/dri_util.c

index fff79c36ad628b9e38187564675746ca57287ef4..ac6e3cdda8e3879bd54011f656f4a845a30e5d62 100644 (file)
@@ -964,7 +964,7 @@ __driUtilCreateNewScreen(__DRInativeDisplay *dpy, int scrn, __DRIscreen *psc,
 
     api_ver = internal_api_version;
 
-    psp = (__DRIscreenPrivate *)_mesa_malloc(sizeof(__DRIscreenPrivate));
+    psp = (__DRIscreenPrivate *)_mesa_calloc(sizeof(__DRIscreenPrivate));
     if (!psp) {
        return NULL;
     }