diff options
-rw-r--r-- | tools/perf/ui/browsers/hists.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index fa9eb92c9e24..932e13d015b9 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c | |||
@@ -1033,6 +1033,9 @@ static void ui_browser__hists_seek(struct ui_browser *browser, | |||
1033 | * and stop when we printed enough lines to fill the screen. | 1033 | * and stop when we printed enough lines to fill the screen. |
1034 | */ | 1034 | */ |
1035 | do_offset: | 1035 | do_offset: |
1036 | if (!nd) | ||
1037 | return; | ||
1038 | |||
1036 | if (offset > 0) { | 1039 | if (offset > 0) { |
1037 | do { | 1040 | do { |
1038 | h = rb_entry(nd, struct hist_entry, rb_node); | 1041 | h = rb_entry(nd, struct hist_entry, rb_node); |