Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2017 01:19:09 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326786 - head/usr.bin/gzip
Message-ID:  <201712120119.vBC1J9wO056276@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712120119.vBC1J9wO056276>