summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2014-04-22 13:57:58 +0000
committergilles <gilles@openbsd.org>2014-04-22 13:57:58 +0000
commit96f2c37ec353ba310a2dc474108e07b5747d50f4 (patch)
tree46ee4d644fdff836fa381be1160d1fa286c99e74
parentMore KNF. (diff)
downloadwireguard-openbsd-96f2c37ec353ba310a2dc474108e07b5747d50f4.tar.xz
wireguard-openbsd-96f2c37ec353ba310a2dc474108e07b5747d50f4.zip
malloc -> calloc
-rw-r--r--usr.sbin/smtpd/smtpctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/smtpctl.c b/usr.sbin/smtpd/smtpctl.c
index 0a13a31ad21..a710c4f0e41 100644
--- a/usr.sbin/smtpd/smtpctl.c
+++ b/usr.sbin/smtpd/smtpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpctl.c,v 1.118 2014/04/19 13:57:17 gilles Exp $ */
+/* $OpenBSD: smtpctl.c,v 1.119 2014/04/22 13:57:58 gilles Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
@@ -307,9 +307,9 @@ srv_iter_evpids(uint32_t msgid, uint64_t *evpid, int *offset)
if (evpids == NULL) {
alloc = 1000;
- evpids = malloc(alloc * sizeof(*evpids));
+ evpids = calloc(alloc, sizeof(*evpids));
if (evpids == NULL)
- err(1, "malloc");
+ err(1, "calloc");
}
if (*offset == 0) {