svn commit: r298660 - head/contrib/netbsd-tests/lib/libc/ssp

Garrett Cooper ngie at FreeBSD.org
Tue Apr 26 19:21:37 UTC 2016


Author: ngie
Date: Tue Apr 26 19:21:35 2016
New Revision: 298660
URL: https://svnweb.freebsd.org/changeset/base/298660

Log:
  Fix up r298368
  
  Remove the semicolon accidentally added after the new conditional that tests
  that /dev/zero is opened successfully.
  
  MFC after: 1 week
  X-MFC with: r298368
  Pointhat to: ngie
  Reported by: Coverity
  CID: 1354980
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/contrib/netbsd-tests/lib/libc/ssp/h_read.c

Modified: head/contrib/netbsd-tests/lib/libc/ssp/h_read.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/ssp/h_read.c	Tue Apr 26 19:06:28 2016	(r298659)
+++ head/contrib/netbsd-tests/lib/libc/ssp/h_read.c	Tue Apr 26 19:21:35 2016	(r298660)
@@ -47,7 +47,7 @@ main(int argc, char *argv[])
 	int fd, n;
 	size_t len = atoi(argv[1]);
 
-	if ((fd = open(_PATH_DEVZERO, O_RDONLY)) == -1);
+	if ((fd = open(_PATH_DEVZERO, O_RDONLY)) == -1)
 		abort();
 	if ((n = read(fd, b, len)) == -1)
 		abort();


More information about the svn-src-all mailing list