diff options
author | Dave Airlie <airliedfreedesktop.org> | 2005-12-23 08:17:44 +0000 |
---|---|---|
committer | Dave Airlie <airliedfreedesktop.org> | 2005-12-23 08:17:44 +0000 |
commit | bc8390fa6cb748061ab325b789b828436eac7c5d (patch) | |
tree | 78a47abe5c1f7f51658a1dddd3928834e392a9db /src/egl/main | |
parent | ad960612cea4a42db915252d0fd4a6cc04de26bd (diff) |
this needs to be calloced
Diffstat (limited to 'src/egl/main')
-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); |