xalloc+memset(0) -> xcalloc

This commit is contained in:
Adam Jackson 2008-10-06 15:36:51 -04:00
commit 8a5b89e8e1
43 changed files with 68 additions and 179 deletions

View file

@ -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;
}