summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2015-02-15 18:02:05 +0000
committerpfg <pfg@FreeBSD.org>2015-02-15 18:02:05 +0000
commitaa3b216a6024b7af176a61d25a911d448245a201 (patch)
treee9eb31bc65eca69d5907eb76d1c2d4cb10417835 /lib
parent642d51969a3fd31fb3fde1fd13dfa40e260620b7 (diff)
downloadFreeBSD-src-aa3b216a6024b7af176a61d25a911d448245a201.zip
FreeBSD-src-aa3b216a6024b7af176a61d25a911d448245a201.tar.gz
Mismatch in r278804.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/getgrent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c
index 43574e7..63bc502 100644
--- a/lib/libc/gen/getgrent.c
+++ b/lib/libc/gen/getgrent.c
@@ -1450,7 +1450,7 @@ docompat:
pos = ftello(st->fp);
}
fin:
- if (st->fp != NULL || !stayopen) {
+ if (st->fp != NULL && !stayopen) {
fclose(st->fp);
st->fp = NULL;
}
OpenPOWER on IntegriCloud