projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad96061
)
this needs to be calloced
author
Dave Airlie
<airliedfreedesktop.org>
Fri, 23 Dec 2005 08:17:44 +0000
(08:17 +0000)
committer
Dave Airlie
<airliedfreedesktop.org>
Fri, 23 Dec 2005 08:17:44 +0000
(08:17 +0000)
src/egl/main/egldisplay.c
patch
|
blob
|
history
diff --git
a/src/egl/main/egldisplay.c
b/src/egl/main/egldisplay.c
index
669a4d5
..
074a85b
100644
(file)
--- 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);