From bc8390fa6cb748061ab325b789b828436eac7c5d Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 23 Dec 2005 08:17:44 +0000 Subject: [PATCH] this needs to be calloced --- src/egl/main/egldisplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c index 669a4d50841..074a85bf26b 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); -- 2.30.2