mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
this needs to be calloced
This commit is contained in:
parent
ad960612ce
commit
bc8390fa6c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue