XQuartz: GL: Change from xalloc to xcalloc to potentially avoid
uninitialized data in the __GLXAquaContext. (cherry picked from commit d3120241f9f48d21f9a6ecfb848434a4a0270855)
This commit is contained in:
parent
5587f9b771
commit
61abf3189f
|
@ -167,7 +167,7 @@ __glXAquaScreenCreateContext(__GLXscreen *screen,
|
||||||
|
|
||||||
GLAQUA_DEBUG_MSG("glXAquaScreenCreateContext\n");
|
GLAQUA_DEBUG_MSG("glXAquaScreenCreateContext\n");
|
||||||
|
|
||||||
context = xalloc (sizeof (__GLXAquaContext));
|
context = xcalloc(1, sizeof (__GLXAquaContext));
|
||||||
|
|
||||||
if (context == NULL)
|
if (context == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue