This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] libdwfl: Correct nested asprintf result check in report_kernel_archive.
- From: Frank Ch. Eigler <fche at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Sat, 21 Dec 2013 12:46:19 -0500
- Subject: Re: [PATCH] libdwfl: Correct nested asprintf result check in report_kernel_archive.
> Yeah, I think you are right, I overdid it because I was a little embarrassed
> I had to count the brackets 6 times before seeing the bug even after it was
> pointed out to me. Pushed the simplified version:
Aw heck, at that point, why not
int res = asprintf (&archive,
((*release)=='/' ? "%s/debug.a"
: MODULEDIRFMT "/debug.a"),