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;
        }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to