From 16af3c00195adc68cbd508e3613be4b2349260b3 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Wed, 30 Jun 2010 10:05:23 +0200 Subject: glamo-output: initialize mode name to NULL with calloc --- src/glamo-output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glamo-output.c b/src/glamo-output.c index 10a0f8e..eea3cb2 100644 --- a/src/glamo-output.c +++ b/src/glamo-output.c @@ -165,7 +165,7 @@ GlamoOutputInit(ScrnInfoPtr pScrn) { output->driver_private = pGlamoOutput; pGlamoOutput->modes = NULL; - mode = xnfalloc(sizeof(DisplayModeRec)); + mode = xnfcalloc(1, sizeof(DisplayModeRec)); if (!mode) return; -- cgit v1.2.3