diff options
author | Adam Jackson <ajax@redhat.com> | 2007-11-15 17:00:37 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2007-11-15 17:00:37 -0500 |
commit | 70e50fa51f05663f289eeeea4521e737e8e24bca (patch) | |
tree | 39b460493b28c00a5f260a4e6802933cbc337ff5 /randr | |
parent | 8d0cd1cd2c57ee5a2fc4d577d8182d66369f0617 (diff) |
Allocate RRCrtcRecs with calloc.
Diffstat (limited to 'randr')
-rw-r--r-- | randr/rrcrtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index 43cfb2923..4a7275bbf 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -72,7 +72,7 @@ RRCrtcCreate (ScreenPtr pScreen, void *devPrivate) return FALSE; pScrPriv->crtcs = crtcs; - crtc = xalloc (sizeof (RRCrtcRec)); + crtc = xcalloc (1, sizeof (RRCrtcRec)); if (!crtc) return NULL; crtc->id = FakeClientID (0); |