mirror of
https://github.com/openharmony/third_party_elfutils.git
synced 2026-07-19 19:43:34 -04:00
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: ed62996def ("elfcompress: Don't rewrite file if no section data needs to be updated.")
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2021-05-12 Dmitry V. Levin <ldv@altlinux.org>
|
||||
|
||||
* elfcompress.c (process_file): Remove redundant assignment in case of
|
||||
"Nothing to do".
|
||||
|
||||
* elfcompress.c (process_file): Set res to 0 in case of "Nothing to do".
|
||||
|
||||
2021-04-19 Martin Liska <mliska@suse.cz>
|
||||
|
||||
@@ -521,7 +521,6 @@ process_file (const char *fname)
|
||||
{
|
||||
if (verbose > 0)
|
||||
printf ("Nothing to do.\n");
|
||||
fnew = NULL;
|
||||
res = 0;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user