mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 04:50:05 +01:00
XQuartz: GL: Change from xalloc to xcalloc to potentially avoid
uninitialized data in the __GLXAquaContext.
This commit is contained in:
parent
c7e3383309
commit
d3120241f9
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue