diff options
| -rw-r--r-- | tools/perf/util/ui/browsers/hists.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/ui/browsers/hists.c b/tools/perf/util/ui/browsers/hists.c index d7a1c4afe28b..2f83e5dc9967 100644 --- a/tools/perf/util/ui/browsers/hists.c +++ b/tools/perf/util/ui/browsers/hists.c | |||
| @@ -125,6 +125,9 @@ static int callchain__count_rows(struct rb_root *chain) | |||
| 125 | 125 | ||
| 126 | static bool map_symbol__toggle_fold(struct map_symbol *self) | 126 | static bool map_symbol__toggle_fold(struct map_symbol *self) |
| 127 | { | 127 | { |
| 128 | if (!self) | ||
| 129 | return false; | ||
| 130 | |||
| 128 | if (!self->has_children) | 131 | if (!self->has_children) |
| 129 | return false; | 132 | return false; |
| 130 | 133 | ||
