aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-07-03 16:19:21 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-07-03 16:19:21 +0200
commitb394eac8f79773dbe8e40f62e2aeb5c49bf7f65d (patch)
treee6c9306dac6aef428ab37e678c690f63856c48ba /nx-X11/programs/Xserver
parent59e46dc54e4fa7590a058e58bb121c1e4de992eb (diff)
downloadnx-libs-b394eac8f79773dbe8e40f62e2aeb5c49bf7f65d.tar.gz
nx-libs-b394eac8f79773dbe8e40f62e2aeb5c49bf7f65d.tar.bz2
nx-libs-b394eac8f79773dbe8e40f62e2aeb5c49bf7f65d.zip
dixfonts.c: use calloc for LFclosurePtr
... to keep dix/dixfonts and hw/nxagnet/NXdixfonts.c in sync.
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/dix/dixfonts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/dix/dixfonts.c b/nx-X11/programs/Xserver/dix/dixfonts.c
index 752a7eb6d..b16b6b2e6 100644
--- a/nx-X11/programs/Xserver/dix/dixfonts.c
+++ b/nx-X11/programs/Xserver/dix/dixfonts.c
@@ -930,7 +930,7 @@ ListFonts(ClientPtr client, unsigned char *pattern, unsigned length,
if (length > XLFDMAXFONTNAMELEN)
return BadAlloc;
- if (!(c = (LFclosurePtr) malloc(sizeof *c)))
+ if (!(c = (LFclosurePtr) calloc(1, sizeof *c)))
return BadAlloc;
c->fpe_list = (FontPathElementPtr *)
malloc(sizeof(FontPathElementPtr) * num_fpes);