about summary refs log tree commit diff
path: root/nss
diff options
context:
space:
mode:
Diffstat (limited to 'nss')
-rw-r--r--nss/nss_files/files-XXX.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/nss/nss_files/files-XXX.c b/nss/nss_files/files-XXX.c
index bc318fa5c7..c1f3c4e4e2 100644
--- a/nss/nss_files/files-XXX.c
+++ b/nss/nss_files/files-XXX.c
@@ -240,10 +240,12 @@ CONCAT(_nss_files_get,ENTNAME_r) (struct STRUCTURE *result, char *buffer,
       /* If the last use was not by the getent function we need the
 	 position the stream.  */
       if (last_use != getent)
-	if (fsetpos (stream, &position) < 0)
-	  status = NSS_STATUS_UNAVAIL;
-	else
-	  last_use = getent;
+	{
+	  if (fsetpos (stream, &position) < 0)
+	    status = NSS_STATUS_UNAVAIL;
+	  else
+	    last_use = getent;
+	}
 
       if (status == NSS_STATUS_SUCCESS)
 	{