diff options
-rw-r--r-- | src/egl/main/egldisplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |