aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/perf_counter/builtin-report.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/perf_counter/builtin-report.c b/Documentation/perf_counter/builtin-report.c
index 7973092..20a4e51 100644
--- a/Documentation/perf_counter/builtin-report.c
+++ b/Documentation/perf_counter/builtin-report.c
@@ -653,8 +653,10 @@ static int __cmd_report(void)
return EXIT_FAILURE;
}
cwdlen = strlen(cwd);
- } else
+ } else {
cwdp = NULL;
+ cwdlen = 0;
+ }
remap:
buf = (char *)mmap(NULL, page_size * mmap_window, PROT_READ,
MAP_SHARED, input, offset);