diff options
author | ngie <ngie@FreeBSD.org> | 2016-04-26 19:21:35 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-04-26 19:21:35 +0000 |
commit | fb3f38bb0debbc390330daf9b681d6905ed5ce18 (patch) | |
tree | 5ec7b6c68fcda77497e14f6c92be19e0f622490a | |
parent | a595d7c8525d0b84ae32ee7c66841e94efe1defb (diff) | |
download | FreeBSD-src-fb3f38bb0debbc390330daf9b681d6905ed5ce18.zip FreeBSD-src-fb3f38bb0debbc390330daf9b681d6905ed5ce18.tar.gz |
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
-rw-r--r-- | contrib/netbsd-tests/lib/libc/ssp/h_read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/netbsd-tests/lib/libc/ssp/h_read.c b/contrib/netbsd-tests/lib/libc/ssp/h_read.c index ac0aad4..c25cfeb 100644 --- a/contrib/netbsd-tests/lib/libc/ssp/h_read.c +++ b/contrib/netbsd-tests/lib/libc/ssp/h_read.c @@ -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(); |