]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - tools/perf/util/ui/browsers/hists.c
perf ui hist browser: Fix segfault on 'a' for annotate
[net-next-2.6.git] / tools / perf / util / ui / browsers / hists.c
index dafdf6775d77f44d69abf1980b1a9cfe4ab053dc..6866aa4c41e09cfd0239559cc903506a351a549c 100644 (file)
@@ -773,7 +773,7 @@ int hists__browse(struct hists *self, const char *helpline, const char *ev_name)
 
                        switch (key) {
                        case 'a':
-                               if (browser->selection->map == NULL &&
+                               if (browser->selection->map == NULL ||
                                    browser->selection->map->dso->annotate_warned)
                                        continue;
                                goto do_annotate;