summaryrefslogtreecommitdiff
path: root/perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'perf.c')
-rw-r--r--perf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perf.c b/perf.c
index d3a981660..f989dfcc8 100644
--- a/perf.c
+++ b/perf.c
@@ -74,7 +74,7 @@ fetch_perf_event_attr(struct tcb *const tcp, const kernel_ulong_t addr)
/* Size should be multiple of 8, but kernel doesn't check for it */
/* size &= ~7; */
- attr = xcalloc(1, sizeof(*attr));
+ attr = xzalloc(sizeof(*attr));
if (umoven_or_printaddr(tcp, addr, size, attr)) {
free(attr);