diff --git a/Documentation/perf_counter/builtin-report.c b/Documentation/perf_counter/builtin-report.c index 7973092094e1..20a4e519dfd1 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);