Remove useless endpwent() calls

This commit is contained in:
matthieu 2016-11-06 10:17:38 +00:00
parent cc885e4714
commit 5f2163b431
2 changed files with 0 additions and 2 deletions

View File

@ -214,7 +214,6 @@ autoLoginEnv(struct display *d, struct verify_info *verify,
Debug("Autologin %s\n", d->autoLogin);
p = getpwnam (d->autoLogin);
endpwent();
if (p == NULL)
return 0;

View File

@ -339,7 +339,6 @@ StartClient (
name, _SysErrorMsg (errno));
return (0);
}
endpwent();
} else {
LogError ("getpwnam for \"%s\" failed: %s\n",
name, _SysErrorMsg (errno));