[PATCH 2/2] elfcompress: remove redundant assignment

Mark Wielaard mark@klomp.org
Wed May 12 20:20:37 GMT 2021

Hi Dmitry,

On Wed, May 12, 2021 at 03:00:00PM +0000, Dmitry V. Levin wrote:
> At the point of "Nothing to do" fnew variable has not been assigned
> after initialization, so it does not have to be reset to NULL.
> Note that any reset of fnew to NULL has to preceded with free(fnew).
> Fixes: ed62996defc6 ("elfcompress: Don't rewrite file if no section data needs to be updated.")

You are right. The NULL assignment is redundant at that spot.



More information about the Elfutils-devel mailing list