]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Bug #1128: Deletion of unnecessary checks before calls of the function “archive_entry... 1134/head
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 4 Feb 2019 18:00:32 +0000 (19:00 +0100)
committerMarkus Elfring <elfring@users.sourceforge.net>
Mon, 4 Feb 2019 18:00:32 +0000 (19:00 +0100)
commit4736e4e715fa929b27958b84c9292faf58517eac
tree8a242ca5f9d476ec5e80c3d3ea0fd86f59ee7d12
parent429189f00d9deb760cf2c271dc363f4271e0cf73
Bug #1128: Deletion of unnecessary checks before calls of the function “archive_entry_free”

The function “archive_entry_free” is implemented in the way that only
two functions are called which tolerate the passing of null pointers.
It is therefore not needed that a function caller repeats a corresponding check.

This issue was fixed by using the software “Coccinelle 1.0.7”.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
libarchive/archive_write_disk_posix.c
libarchive/archive_write_disk_windows.c
libarchive/archive_write_set_format_cpio.c
libarchive/archive_write_set_format_cpio_newc.c
libarchive/archive_write_set_format_gnutar.c
libarchive/archive_write_set_format_shar.c
libarchive/archive_write_set_format_ustar.c
libarchive/archive_write_set_format_v7tar.c
libarchive/archive_write_set_format_zip.c