mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-04 22:36:10 +00:00
xalloc+memset(0) -> xcalloc
This commit is contained in:
parent
0b7b89fbac
commit
8a5b89e8e1
43 changed files with 68 additions and 179 deletions
|
|
@ -164,11 +164,10 @@ static __GLXcontext *__glXdirectContextCreate(__GLXscreen *screen,
|
|||
{
|
||||
__GLXcontext *context;
|
||||
|
||||
context = xalloc (sizeof (__GLXcontext));
|
||||
context = xcalloc (1, sizeof (__GLXcontext));
|
||||
if (context == NULL)
|
||||
return NULL;
|
||||
|
||||
memset(context, 0, sizeof *context);
|
||||
context->destroy = __glXdirectContextDestroy;
|
||||
|
||||
return context;
|
||||
|
|
|
|||
Loading…
Reference in a new issue