Description: errno needs to be reset before each call to getpwent.
Origin: http://git.pwmt.org/?p=girara.git;a=commit;h=a231b16b
Bug-Debian: http://bugs.debian.org/666416
Last-Update: 2012-04-20

---
 tests/test_utils.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/test_utils.c b/tests/test_utils.c
index 75c8ef3..624bb12 100644
--- a/tests/test_utils.c
+++ b/tests/test_utils.c
@@ -49,6 +49,7 @@ read_pwd_info(void)
     pwdinfo->name = g_strdup(pw->pw_name);
     pwdinfo->dir = g_strdup(pw->pw_dir);
     girara_list_append(list, pwdinfo);
+    errno = 0;
   }
   fail_unless(errno == 0, "Non-zero errno :%d", errno, NULL);
   endpwent();
-- 
1.7.10

