There's no way for entry to possibly be NULL at the end of write_entry

(in fact, there has never been any way for it to be NULL, going all the
way back to revision 1.1 of this file), so remove the check and
unconditionally free entry.

Found by:	Coverity Prevent
This commit is contained in:
Colin Percival 2008-05-19 18:09:26 +00:00
parent ee99deabac
commit 1eef28bb67

View file

@ -932,8 +932,7 @@ abort:
if (fd >= 0)
close(fd);
if (entry != NULL)
archive_entry_free(entry);
archive_entry_free(entry);
}