aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index 3ea62199ffe1..deda1a93131e 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -282,7 +282,7 @@ static int parse_scriptname(const struct option *opt __used,
282 script++; 282 script++;
283 } else { 283 } else {
284 script = str; 284 script = str;
285 ext = strchr(script, '.'); 285 ext = strrchr(script, '.');
286 if (!ext) { 286 if (!ext) {
287 fprintf(stderr, "invalid script extension"); 287 fprintf(stderr, "invalid script extension");
288 return -1; 288 return -1;