diff options
Diffstat (limited to 'tools')
-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 d9e995bf8b6f..c0a028c3ebaf 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
@@ -50,6 +50,8 @@ struct symbol_conf symbol_conf = { | |||
50 | 50 | ||
51 | int dso__name_len(const struct dso *dso) | 51 | int dso__name_len(const struct dso *dso) |
52 | { | 52 | { |
53 | if (!dso) | ||
54 | return strlen("[unknown]"); | ||
53 | if (verbose) | 55 | if (verbose) |
54 | return dso->long_name_len; | 56 | return dso->long_name_len; |
55 | 57 | ||