From 0b7b89fbac0b3865b2cf51295c68a5f4c7523f28 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 6 Oct 2008 14:19:30 -0400 Subject: xalloc+bzero -> xcalloc --- dbe/dbe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dbe') diff --git a/dbe/dbe.c b/dbe/dbe.c index 1a08bdab9..bd2778938 100644 --- a/dbe/dbe.c +++ b/dbe/dbe.c @@ -297,10 +297,9 @@ ProcDbeAllocateBackBufferName(ClientPtr client) * Allocate a window priv. */ - pDbeWindowPriv = (DbeWindowPrivPtr)xalloc(sizeof(DbeWindowPrivRec)); + pDbeWindowPriv = xcalloc(1, sizeof(DbeWindowPrivRec)); if (!pDbeWindowPriv) return(BadAlloc); - bzero(pDbeWindowPriv, sizeof(DbeWindowPrivRec)); /* Fill out window priv information. */ pDbeWindowPriv->pWindow = pWin; -- cgit v1.2.3