summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/pmcstat/pmcstat_log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pmcstat/pmcstat_log.c b/usr.sbin/pmcstat/pmcstat_log.c
index 2ac52da..b7f5a23 100644
--- a/usr.sbin/pmcstat/pmcstat_log.c
+++ b/usr.sbin/pmcstat/pmcstat_log.c
@@ -564,6 +564,8 @@ pmcstat_image_add_symbols(struct pmcstat_image *image, Elf *e,
}
image->pi_symcount += newsyms;
+ if (image->pi_symcount == 0)
+ return;
assert(newsyms <= nfuncsyms);
OpenPOWER on IntegriCloud