summaryrefslogtreecommitdiffstats
path: root/src/glx/applegl_glx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/applegl_glx.c')
-rw-r--r--src/glx/applegl_glx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glx/applegl_glx.c b/src/glx/applegl_glx.c
index c3597cee765..a67416ec3f4 100644
--- a/src/glx/applegl_glx.c
+++ b/src/glx/applegl_glx.c
@@ -173,11 +173,10 @@ applegl_create_screen(int screen, struct glx_display * priv)
{
struct glx_screen *psc;
- psc = malloc(sizeof *psc);
+ psc = calloc(1, sizeof *psc);
if (psc == NULL)
return NULL;
- memset(psc, 0, sizeof *psc);
glx_screen_init(psc, screen, priv);
psc->vtable = &applegl_screen_vtable;