From 4d1e358c7729615c1466c824014d3399ae39a0c7 Mon Sep 17 00:00:00 2001 From: pfg Date: Thu, 29 Jan 2015 15:33:05 +0000 Subject: [PATCH] Revert r277841: It will be re-merged through the vendor area. --- contrib/amd/hlfsd/homedir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/amd/hlfsd/homedir.c b/contrib/amd/hlfsd/homedir.c index fb4720cbafa7..2ade32ffb344 100644 --- a/contrib/amd/hlfsd/homedir.c +++ b/contrib/amd/hlfsd/homedir.c @@ -494,7 +494,7 @@ hlfsd_getpwent(void) buf[0] = '\0'; fgets(buf, 256, passwd_fp); passwd_line++; - if (buf[0] == '\0') + if (!buf || buf[0] == '\0') goto readent; /* read user name */