summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2005-12-23 08:17:44 +0000
committerDave Airlie <airliedfreedesktop.org>2005-12-23 08:17:44 +0000
commitbc8390fa6cb748061ab325b789b828436eac7c5d (patch)
tree78a47abe5c1f7f51658a1dddd3928834e392a9db /src/egl
parentad960612cea4a42db915252d0fd4a6cc04de26bd (diff)
downloadexternal_mesa3d-bc8390fa6cb748061ab325b789b828436eac7c5d.zip
external_mesa3d-bc8390fa6cb748061ab325b789b828436eac7c5d.tar.gz
external_mesa3d-bc8390fa6cb748061ab325b789b828436eac7c5d.tar.bz2
this needs to be calloced
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/main/egldisplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c
index 669a4d5..074a85b 100644
--- a/src/egl/main/egldisplay.c
+++ b/src/egl/main/egldisplay.c
@@ -24,7 +24,7 @@ my_strdup(const char *s)
_EGLDisplay *
_eglNewDisplay(NativeDisplayType displayName)
{
- _EGLDisplay *dpy = (_EGLDisplay *) malloc(sizeof(_EGLDisplay));
+ _EGLDisplay *dpy = (_EGLDisplay *) calloc(1, sizeof(_EGLDisplay));
if (dpy) {
dpy->Handle = _eglHashGenKey(_eglGlobal.Displays);
_eglHashInsert(_eglGlobal.Displays, dpy->Handle, dpy);