diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c index 699cf81..e3486d5 100644 --- a/tools/perf/util/hist.c +++ b/tools/perf/util/hist.c @@ -976,7 +976,7 @@ static int hist_entry__parse_objdump_line(struct hist_entry *self, FILE *file, * Parse hexa addresses followed by ':' */ line_ip = strtoull(tmp, &tmp2, 16); - if (*tmp2 != ':' || tmp == tmp2) + if (*tmp2 != ':' || tmp == tmp2 || tmp2[1] == '\0') line_ip = -1; }