aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--loginutils/su.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/loginutils/su.c b/loginutils/su.c
index 5bec4bc8b..c31e7e771 100644
--- a/loginutils/su.c
+++ b/loginutils/su.c
@@ -42,7 +42,9 @@ int su_main(int argc UNUSED_PARAM, char **argv)
42 struct passwd *pw; 42 struct passwd *pw;
43 uid_t cur_uid = getuid(); 43 uid_t cur_uid = getuid();
44 const char *tty; 44 const char *tty;
45#if ENABLE_FEATURE_UTMP
45 char user_buf[64]; 46 char user_buf[64];
47#endif
46 const char *old_user; 48 const char *old_user;
47 49
48 flags = getopt32(argv, "mplc:s:", &opt_command, &opt_shell); 50 flags = getopt32(argv, "mplc:s:", &opt_command, &opt_shell);