summaryrefslogtreecommitdiff
path: root/render/picture.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-10-06 15:36:51 -0400
committerAdam Jackson <ajax@redhat.com>2008-10-06 15:36:51 -0400
commit8a5b89e8e184f4cbf33c6dee0b06e61d8f857576 (patch)
treeb042833775d237a3971eae7a7192400e064ad50d /render/picture.c
parent0b7b89fbac0b3865b2cf51295c68a5f4c7523f28 (diff)
xalloc+memset(0) -> xcalloc
Diffstat (limited to 'render/picture.c')
-rw-r--r--render/picture.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/render/picture.c b/render/picture.c
index 9def47b0f..fc2bf43d5 100644
--- a/render/picture.c
+++ b/render/picture.c
@@ -316,10 +316,9 @@ PictureCreateDefaultFormats (ScreenPtr pScreen, int *nformatp)
}
- pFormats = (PictFormatPtr) xalloc (nformats * sizeof (PictFormatRec));
+ pFormats = xcalloc (nformats, sizeof (PictFormatRec));
if (!pFormats)
return 0;
- memset (pFormats, '\0', nformats * sizeof (PictFormatRec));
for (f = 0; f < nformats; f++)
{
pFormats[f].id = FakeClientID (0);