projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8292d2
)
allocate __GLXdisplayPrivate w/ Xcalloc instead of Xmalloc (bug 10569)
author
Brian
<brian@yutani.localnet.net>
Mon, 9 Apr 2007 14:49:26 +0000
(08:49 -0600)
committer
Brian
<brian@yutani.localnet.net>
Mon, 9 Apr 2007 14:49:26 +0000
(08:49 -0600)
src/glx/x11/glxext.c
patch
|
blob
|
history
diff --git
a/src/glx/x11/glxext.c
b/src/glx/x11/glxext.c
index 95e7d6f943b6b23d242ac71fa86f397eebc9714a..003c5ee48282c90427ad3432e2ee3d164891e43f 100644
(file)
--- a/
src/glx/x11/glxext.c
+++ b/
src/glx/x11/glxext.c
@@
-1246,7
+1246,7
@@
__GLXdisplayPrivate *__glXInitialize(Display* dpy)
__glXUnlock();
return 0;
}
- dpyPriv = (__GLXdisplayPrivate *) X
malloc(
sizeof(__GLXdisplayPrivate));
+ dpyPriv = (__GLXdisplayPrivate *) X
calloc(1,
sizeof(__GLXdisplayPrivate));
if (!dpyPriv) {
__glXUnlock();
Xfree((char*) private);