Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Feb 2015 18:02:06 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r278805 - head/lib/libc/gen
Message-ID:  <201502151802.t1FI26Sm068959@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Sun Feb 15 18:02:05 2015
New Revision: 278805
URL: https://svnweb.freebsd.org/changeset/base/278805

Log:
  Mismatch in r278804.

Modified:
  head/lib/libc/gen/getgrent.c

Modified: head/lib/libc/gen/getgrent.c
==============================================================================
--- head/lib/libc/gen/getgrent.c	Sun Feb 15 16:50:21 2015	(r278804)
+++ head/lib/libc/gen/getgrent.c	Sun Feb 15 18:02:05 2015	(r278805)
@@ -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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502151802.t1FI26Sm068959>