summaryrefslogtreecommitdiff
path: root/astraceroute.c
diff options
context:
space:
mode:
Diffstat (limited to 'astraceroute.c')
-rw-r--r--astraceroute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/astraceroute.c b/astraceroute.c
index 2f3449e..da922c6 100644
--- a/astraceroute.c
+++ b/astraceroute.c
@@ -785,7 +785,7 @@ static int __process_time(struct ctx *ctx, int fd, int fd_cap, int ttl,
return -EIO;
}
- tmp = xmalloc(sizeof(struct timeval) * good);
+ tmp = xcalloc(good, sizeof(struct timeval));
for (i = j = 0; i < array_size(probes); ++i) {
if (probes[i].tv_sec == 0 && probes[i].tv_usec == 0)
continue;