]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - tools/perf/util/symbol.c
perf_counter tools: Initialize a stack variable before use
[mv-sheeva.git] / tools / perf / util / symbol.c
index 253821d1efdb8c9734823f7722a0add17275af90..158588c7f6b1daedd7c6aa659da82beb0c238566 100644 (file)
@@ -457,6 +457,8 @@ static int dso__load_sym(struct dso *self, int fd, const char *name,
 
        nr_syms = shdr.sh_size / shdr.sh_entsize;
 
+       memset(&sym, 0, sizeof(sym));
+
        elf_symtab__for_each_symbol(syms, nr_syms, index, sym) {
                struct symbol *f;
                uint64_t obj_start;