Date: Tue, 26 Apr 2016 19:21:36 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298660 - head/contrib/netbsd-tests/lib/libc/ssp Message-ID: <201604261921.u3QJLaEN013834@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604261921.u3QJLaEN013834>