Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753466AbdCOSnm (ORCPT ); Wed, 15 Mar 2017 14:43:42 -0400 Received: from terminus.zytor.com ([65.50.211.136]:39570 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752954AbdCOSnB (ORCPT ); Wed, 15 Mar 2017 14:43:01 -0400 Date: Wed, 15 Mar 2017 11:38:32 -0700 From: tip-bot for Changbin Du Message-ID: Cc: feng.tang@intel.com, changbin.du@intel.com, mingo@kernel.org, acme@redhat.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, hpa@zytor.com, peterz@infradead.org Reply-To: hpa@zytor.com, peterz@infradead.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, acme@redhat.com, mingo@kernel.org, feng.tang@intel.com, changbin.du@intel.com In-Reply-To: <20170313114652.9207-1-changbin.du@intel.com> References: <20170313114652.9207-1-changbin.du@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf hists browser: Fix typo in function switch_data_file Git-Commit-ID: 3ef5b4023c64c16c793a066a7a2ed6ea3767e0d7 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1311 Lines: 34 Commit-ID: 3ef5b4023c64c16c793a066a7a2ed6ea3767e0d7 Gitweb: http://git.kernel.org/tip/3ef5b4023c64c16c793a066a7a2ed6ea3767e0d7 Author: Changbin Du AuthorDate: Mon, 13 Mar 2017 19:46:52 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 13 Mar 2017 11:58:57 -0300 perf hists browser: Fix typo in function switch_data_file Should clear buf 'abs_path', not 'options'. Signed-off-by: Changbin Du Cc: Feng Tang Cc: Peter Zijlstra Fixes: 341487ab561f ("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 --- tools/perf/ui/browsers/hists.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index fc4fb66..2dc82be 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c @@ -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];