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 19:39:36 +0000 (12:39 -0700)
src/mesa/drivers/dri/common/dri_util.c

index ceedd914fb3fa52a1b7dbda5c4b3056279c73cdc..e9b1a80b913f8270164d64cf0445818a4a2281e3 100644 (file)
@@ -682,7 +682,7 @@ driCreateNewScreen(int scrn,
     static const __DRIextension *emptyExtensionList[] = { NULL };
     __DRIscreen *psp;
 
-    psp = _mesa_malloc(sizeof *psp);
+    psp = _mesa_calloc(sizeof *psp);
     if (!psp)
        return NULL;