summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Staplin <gstaplin@apple.com>2009-02-21 22:33:10 -0700
committerJeremy Huddleston <jeremy@yuffie.local>2009-02-21 23:35:26 -0800
commit61abf3189f3f97ec5228d45c035dbfd0c249f844 (patch)
treef9d782083c65afb74d0445233c71bbc827044834
parent5587f9b771f5b5427a81d4d657f403667d20f310 (diff)
XQuartz: GL: Change from xalloc to xcalloc to potentially avoid
uninitialized data in the __GLXAquaContext. (cherry picked from commit d3120241f9f48d21f9a6ecfb848434a4a0270855)
-rw-r--r--hw/xquartz/GL/indirect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xquartz/GL/indirect.c b/hw/xquartz/GL/indirect.c
index e71516a79..9b54b0c19 100644
--- a/hw/xquartz/GL/indirect.c
+++ b/hw/xquartz/GL/indirect.c
@@ -167,7 +167,7 @@ __glXAquaScreenCreateContext(__GLXscreen *screen,
GLAQUA_DEBUG_MSG("glXAquaScreenCreateContext\n");
- context = xalloc (sizeof (__GLXAquaContext));
+ context = xcalloc(1, sizeof (__GLXAquaContext));
if (context == NULL)
return NULL;