From f80a3677a5167b9e85bbc2a622456232fd4668f5 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 29 Dec 2015 00:02:08 +0000 Subject: Remove useless assignement of linelen --- pw/pw_vpw.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'pw') diff --git a/pw/pw_vpw.c b/pw/pw_vpw.c index a23c66e..2d1c75b 100644 --- a/pw/pw_vpw.c +++ b/pw/pw_vpw.c @@ -70,7 +70,6 @@ vnextpwent(char const *nam, uid_t uid, int doclose) pw = NULL; line = NULL; linecap = 0; - linelen = 0; if (pwd_fp != NULL || (pwd_fp = fopen(getpwpath(_MASTERPASSWD), "r")) != NULL) { while ((linelen = getline(&line, &linecap, pwd_fp)) > 0) { @@ -153,7 +152,6 @@ vnextgrent(char const *nam, gid_t gid, int doclose) gr = NULL; line = NULL; linecap = 0; - linelen = 0; if (grp_fp != NULL || (grp_fp = fopen(getgrpath(_GROUP), "r")) != NULL) { while ((linelen = getline(&line, &linecap, grp_fp)) > 0) { -- cgit v1.2.3-56-ge451