diff options
Diffstat (limited to 'loginutils/sulogin.c')
-rw-r--r-- | loginutils/sulogin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index c07264e7b..30f9d9350 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c | |||
@@ -41,7 +41,6 @@ int sulogin_main(int argc, char **argv) | |||
41 | char *timeout_arg; | 41 | char *timeout_arg; |
42 | const char * const *p; | 42 | const char * const *p; |
43 | struct passwd *pwd; | 43 | struct passwd *pwd; |
44 | struct spwd *spwd; | ||
45 | const char *shell; | 44 | const char *shell; |
46 | 45 | ||
47 | logmode = LOGMODE_BOTH; | 46 | logmode = LOGMODE_BOTH; |
@@ -76,7 +75,7 @@ int sulogin_main(int argc, char **argv) | |||
76 | } | 75 | } |
77 | 76 | ||
78 | if (ENABLE_FEATURE_SHADOWPASSWDS) { | 77 | if (ENABLE_FEATURE_SHADOWPASSWDS) { |
79 | spwd = getspnam(pwd->pw_name); | 78 | struct spwd *spwd = getspnam(pwd->pw_name); |
80 | if (!spwd) { | 79 | if (!spwd) { |
81 | goto auth_error; | 80 | goto auth_error; |
82 | } | 81 | } |