Skip to content

Commit

Permalink
perf hists browser: Fix typo in function switch_data_file
Browse files Browse the repository at this point in the history
Should clear buf 'abs_path', not 'options'.

Signed-off-by: Changbin Du <changbin.du@intel.com>
Cc: Feng Tang <feng.tang@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Fixes: 341487a ("perf hists browser: Add option for runtime switching perf data file")
Link: http://lkml.kernel.org/r/20170313114652.9207-1-changbin.du@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Changbin Du authored and Arnaldo Carvalho de Melo committed Mar 13, 2017
1 parent d35fa1e commit 3ef5b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/ui/browsers/hists.c
Original file line number Diff line number Diff line change
Expand Up @@ -2308,7 +2308,7 @@ static int switch_data_file(void)
return ret;

memset(options, 0, sizeof(options));
memset(options, 0, sizeof(abs_path));
memset(abs_path, 0, sizeof(abs_path));

while ((dent = readdir(pwd_dir))) {
char path[PATH_MAX];
Expand Down

0 comments on commit 3ef5b40

Please sign in to comment.