diff options
Diffstat (limited to 'xorg-server/hw/dmx/dmxstat.c')
-rw-r--r-- | xorg-server/hw/dmx/dmxstat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xorg-server/hw/dmx/dmxstat.c b/xorg-server/hw/dmx/dmxstat.c index a89c69eae..e3c13a623 100644 --- a/xorg-server/hw/dmx/dmxstat.c +++ b/xorg-server/hw/dmx/dmxstat.c @@ -115,8 +115,7 @@ void dmxStatActivate(const char *interval, const char *displays) /** Allocate a \a DMXStatInfo structure. */ DMXStatInfo *dmxStatAlloc(void) { - DMXStatInfo *pt = malloc(sizeof(*pt)); - memset(pt, 0, sizeof(*pt)); + DMXStatInfo *pt = calloc(1, sizeof(*pt)); return pt; } |