This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Commit: Fix potential null pointer dereference in linker
Hi Alan,
> Actually, &file_chain.head->input_statement is exactly the same as
> (lang_input_statement_type *) file_chain.head
> Please, can you just go back to using the cast here instead? A while
> ago I spent quite a bit of effort removing casts in ldlang.* but I
> reckon a cast looks better than this overlong line.
Fair enough. Done.
Cheers
Nick
binutils/ChangeLog
2019-11-22 Nick Clifton <nickc@redhat.com>
* ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Use cast instead of
extra check.