diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2010-06-30 10:05:23 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-06-30 22:31:32 +0200 |
commit | 16af3c00195adc68cbd508e3613be4b2349260b3 (patch) | |
tree | 1a6070a11a1102fedc9f46b7f52913cf6a6880dc | |
parent | cfacbc598926df16e17b37eccbe13e5a712a2d51 (diff) |
glamo-output: initialize mode name to NULL with calloc
-rw-r--r-- | src/glamo-output.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |