Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1599494
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Arnaldo Carvalho de Melo <acme@kernel.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] perf: fix typo in function switch_data_file |
| Date | Mon, 13 Mar 2017 16:10:02 +0100 |
| Message-ID | <tkzLI-2ig-5@gated-at.bofh.it> (permalink) |
| References | <tkwE9-8nq-9@gated-at.bofh.it> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| X-URL | http://acmel.wordpress.com |
| User-Agent | Mutt/1.7.1 (2016-10-04) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 29 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org, Feng Tang <feng.tang@intel.com> |
| X-Original-Date | Mon, 13 Mar 2017 12:00:04 -0300 |
| X-Original-Message-ID | <20170313150004.GQ2750@kernel.org> |
| X-Original-References | <20170313114652.9207-1-changbin.du@intel.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1599494 |
Show key headers only | View raw
Em Mon, Mar 13, 2017 at 07:46:52PM +0800, changbin.du@intel.com escreveu:
> From: Changbin Du <changbin.du@intel.com>
>
> Should clear buf abs_path, not options.
Thanks, applied.
- Arnaldo
> Signed-off-by: Changbin Du <changbin.du@intel.com>
> ---
> 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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] perf: fix typo in function switch_data_file changbin.du@intel.com - 2017-03-13 12:50 +0100 Re: [PATCH] perf: fix typo in function switch_data_file Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-03-13 16:10 +0100
csiph-web