elfcompress: remove redundant assignment
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 12 May 2021 15:00:00 +0000 (15:00 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 12 May 2021 15:00:00 +0000 (15:00 +0000)
commit806c1f7a0d08ae2be40b39773ddf16ea5c8a1128
treee2b9e224ed2a352dd6df15605327ed06a4091c7e
parent43ac25c2de7ba21fb8f9e4d4db0c01c1408da0b8
elfcompress: remove redundant assignment

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.")
src/ChangeLog
src/elfcompress.c