From aa3b216a6024b7af176a61d25a911d448245a201 Mon Sep 17 00:00:00 2001 From: pfg Date: Sun, 15 Feb 2015 18:02:05 +0000 Subject: Mismatch in r278804. --- lib/libc/gen/getgrent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; } -- cgit v1.1