this needs to be calloced

This commit is contained in:
Dave Airlie 2005-12-23 08:17:44 +00:00
parent ad960612ce
commit bc8390fa6c
1 changed files with 1 additions and 1 deletions

View File

@ -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);