mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-23 08:42:53 +00:00
Revert CVS revision 1.68; it is now possible for entry to be NULL at the end
of write_entry. (This was perfectly safe, since archive_entry_free(NULL) is a no-op, but adding the check back makes the style more consistent.)
This commit is contained in:
parent
6481fd43de
commit
9af6e14a8c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180277
|
@ -950,7 +950,8 @@ write_entry(struct bsdtar *bsdtar, struct archive *a, const struct stat *st,
|
|||
if (fd >= 0)
|
||||
close(fd);
|
||||
|
||||
archive_entry_free(entry);
|
||||
if (entry != NULL)
|
||||
archive_entry_free(entry);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue