diff options
Diffstat (limited to 'tools/perf/util/header.c')
-rw-r--r-- | tools/perf/util/header.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 271a1600e6f7..4b586569bb02 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c | |||
@@ -63,7 +63,7 @@ int perf_header_attr__add_id(struct perf_header_attr *self, u64 id) | |||
63 | */ | 63 | */ |
64 | struct perf_header *perf_header__new(void) | 64 | struct perf_header *perf_header__new(void) |
65 | { | 65 | { |
66 | struct perf_header *self = calloc(sizeof(*self), 1); | 66 | struct perf_header *self = zalloc(sizeof(*self)); |
67 | 67 | ||
68 | if (self != NULL) { | 68 | if (self != NULL) { |
69 | self->size = 1; | 69 | self->size = 1; |