diff options
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/symbol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 253821d1efdb..158588c7f6b1 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
@@ -457,6 +457,8 @@ static int dso__load_sym(struct dso *self, int fd, const char *name, | |||
457 | 457 | ||
458 | nr_syms = shdr.sh_size / shdr.sh_entsize; | 458 | nr_syms = shdr.sh_size / shdr.sh_entsize; |
459 | 459 | ||
460 | memset(&sym, 0, sizeof(sym)); | ||
461 | |||
460 | elf_symtab__for_each_symbol(syms, nr_syms, index, sym) { | 462 | elf_symtab__for_each_symbol(syms, nr_syms, index, sym) { |
461 | struct symbol *f; | 463 | struct symbol *f; |
462 | uint64_t obj_start; | 464 | uint64_t obj_start; |