Commit f71b4718 authored by Changbin Du's avatar Changbin Du Committed by Ben Hutchings

perf hists browser: Fix typo in function switch_data_file

commit 3ef5b402 upstream.

Should clear buf 'abs_path', not 'options'.
Signed-off-by: default avatarChangbin Du <changbin.du@intel.com>
Cc: Feng Tang <feng.tang@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Fixes: 341487ab ("perf hists browser: Add option for runtime switching perf data file")
Link: http://lkml.kernel.org/r/20170313114652.9207-1-changbin.du@intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent f05ff3f2
......@@ -1305,7 +1305,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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment