svn commit: r316523 - head/usr.bin/pr

Alan Somers asomers at FreeBSD.org
Wed Apr 5 16:13:37 UTC 2017


Author: asomers
Date: Wed Apr  5 16:13:36 2017
New Revision: 316523
URL: https://svnweb.freebsd.org/changeset/base/316523

Log:
  Remove a duplicate fclose() that snuck into r316501
  
  Reported by:	Coverity
  CID:		1373338
  MFC after:	20 days
  X-MFC-With:	316501
  Sponsored by:	Spectra Logic Corp

Modified:
  head/usr.bin/pr/pr.c

Modified: head/usr.bin/pr/pr.c
==============================================================================
--- head/usr.bin/pr/pr.c	Wed Apr  5 12:48:24 2017	(r316522)
+++ head/usr.bin/pr/pr.c	Wed Apr  5 16:13:36 2017	(r316523)
@@ -1386,7 +1386,6 @@ nxtfile(int argc, char **argv, const cha
 					(void)fprintf(err,
 						"pr: cannot stat %s, %s\n",
 						argv[eoptind], strerror(errno));
-					fclose(inf);
 					return(NULL);
 				}
 				timeptr = localtime(&(statbuf.st_mtime));


More information about the svn-src-all mailing list