perf tools: Remove hists from evsel
[cascardo/linux.git] / tools / perf / builtin-annotate.c
index a5969fa..e7417fe 100644 (file)
@@ -326,7 +326,10 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused)
                    "Show event group information together"),
        OPT_END()
        };
-       int ret;
+       int ret = hists__init();
+
+       if (ret < 0)
+               return ret;
 
        argc = parse_options(argc, argv, options, annotate_usage, 0);