diff --git a/usr.sbin/kldxref/ef.c b/usr.sbin/kldxref/ef.c index 634de6ebab35..0de694d14cee 100644 --- a/usr.sbin/kldxref/ef.c +++ b/usr.sbin/kldxref/ef.c @@ -384,6 +384,7 @@ ef_parse_dynamic(elf_file_t ef, const GElf_Phdr *phdyn) goto out; } + nsym = 0; for (i = 0; i < nshdr; i++) { switch (shdr[i].sh_type) { case SHT_HASH: