Skip to content

Commit 3ef5b40

Browse files
Changbin Duacmel
authored andcommitted
perf hists browser: Fix typo in function switch_data_file
Should clear buf 'abs_path', not 'options'. Signed-off-by: Changbin Du <[email protected]> Cc: Feng Tang <[email protected]> Cc: Peter Zijlstra <[email protected]> Fixes: 341487a ("perf hists browser: Add option for runtime switching perf data file") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent d35fa1e commit 3ef5b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/ui/browsers/hists.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2308,7 +2308,7 @@ static int switch_data_file(void)
23082308
return ret;
23092309

23102310
memset(options, 0, sizeof(options));
2311-
memset(options, 0, sizeof(abs_path));
2311+
memset(abs_path, 0, sizeof(abs_path));
23122312

23132313
while ((dent = readdir(pwd_dir))) {
23142314
char path[PATH_MAX];

0 commit comments

Comments
 (0)