mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-27 02:09:56 +00:00
xalloc+memset(0) -> xcalloc
This commit is contained in:
parent
0b7b89fbac
commit
8a5b89e8e1
43 changed files with 68 additions and 179 deletions
|
|
@ -104,8 +104,7 @@ typedef struct _myPrivate {
|
|||
pointer dmxBackendCreatePrivate(DeviceIntPtr pDevice)
|
||||
{
|
||||
GETDMXLOCALFROMPDEVICE;
|
||||
myPrivate *priv = xalloc(sizeof(*priv));
|
||||
memset(priv, 0, sizeof(*priv));
|
||||
myPrivate *priv = xcalloc(1, sizeof(*priv));
|
||||
priv->dmxLocal = dmxLocal;
|
||||
return priv;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue