svn commit: r326786 - head/usr.bin/gzip
Conrad Meyer
cem at FreeBSD.org
Tue Dec 12 01:19:10 UTC 2017
Author: cem
Date: Tue Dec 12 01:19:08 2017
New Revision: 326786
URL: https://svnweb.freebsd.org/changeset/base/326786
Log:
gzip(1): Remove duplicate close()
CID: 1383560
Reported by: Coverity
Sponsored by: Dell EMC Isilon
Modified:
head/usr.bin/gzip/gzip.c
Modified: head/usr.bin/gzip/gzip.c
==============================================================================
--- head/usr.bin/gzip/gzip.c Tue Dec 12 00:51:39 2017 (r326785)
+++ head/usr.bin/gzip/gzip.c Tue Dec 12 01:19:08 2017 (r326786)
@@ -1444,7 +1444,6 @@ file_uncompress(char *file, char *outfile, size_t outs
goto lose;
}
if (fstat(fd, &isb) != 0) {
- close(fd);
maybe_warn("can't stat %s", file);
goto lose;
}
More information about the svn-src-all
mailing list