aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-help.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-help.c')
-rw-r--r--tools/perf/builtin-help.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/builtin-help.c b/tools/perf/builtin-help.c
index 96c1a4cfbbbf..49d55e21b1b0 100644
--- a/tools/perf/builtin-help.c
+++ b/tools/perf/builtin-help.c
@@ -86,8 +86,7 @@ static int check_emacsclient_version(void)
86 return -1; 86 return -1;
87 } 87 }
88 88
89 strbuf_remove(&buffer, 0, strlen("emacsclient")); 89 version = atoi(buffer.buf + strlen("emacsclient"));
90 version = atoi(buffer.buf);
91 90
92 if (version < 22) { 91 if (version < 22) {
93 fprintf(stderr, 92 fprintf(stderr,
@@ -273,7 +272,7 @@ static int perf_help_config(const char *var, const char *value, void *cb)
273 if (!prefixcmp(var, "man.")) 272 if (!prefixcmp(var, "man."))
274 return add_man_viewer_info(var, value); 273 return add_man_viewer_info(var, value);
275 274
276 return perf_default_config(var, value, cb); 275 return 0;
277} 276}
278 277
279static struct cmdnames main_cmds, other_cmds; 278static struct cmdnames main_cmds, other_cmds;