Commit: Fix potential null pointer dereference in linker
Nick Clifton
nickc@redhat.com
Fri Nov 22 13:14:00 GMT 2019
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.
More information about the Binutils
mailing list