Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751548AbdCMPBH (ORCPT ); Mon, 13 Mar 2017 11:01:07 -0400 Received: from mail.kernel.org ([198.145.29.136]:46908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753310AbdCMPA6 (ORCPT ); Mon, 13 Mar 2017 11:00:58 -0400 Date: Mon, 13 Mar 2017 12:00:04 -0300 From: Arnaldo Carvalho de Melo To: changbin.du@intel.com Cc: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org, Feng Tang Subject: Re: [PATCH] perf: fix typo in function switch_data_file Message-ID: <20170313150004.GQ2750@kernel.org> References: <20170313114652.9207-1-changbin.du@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170313114652.9207-1-changbin.du@intel.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 824 Lines: 29 Em Mon, Mar 13, 2017 at 07:46:52PM +0800, changbin.du@intel.com escreveu: > From: Changbin Du > > Should clear buf abs_path, not options. Thanks, applied. - Arnaldo > Signed-off-by: Changbin Du > --- > 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 a6dae80..6fafe02 100644 > --- a/tools/perf/ui/browsers/hists.c > +++ b/tools/perf/ui/browsers/hists.c > @@ -2350,7 +2350,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]; > -- > 2.7.4