* passwd.c (main): Initialize oldpwd before beeing used.

This commit is contained in:
Corinna Vinschen 2000-07-31 13:35:39 +00:00
parent a9867e1b58
commit deb2b467e9
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Mon Jul 31 15:12:00 2000 Corinna Vinschen <corinna@vinschen.de>
* passwd.c (main): Initialize oldpwd before beeing used.
Sat Jul 29 00:44:46 2000 Christopher Faylor <cgf@cygnus.com>
* kill.cc (main): Add '-f' option to force termination of a process.

View File

@ -330,6 +330,7 @@ main (int argc, char **argv)
eprint (0, "Enter the new password (minimum of 5, maximum of 8 characters).");
eprint (0, "Please use a combination of upper and lower case letters and numbers.");
oldpwd[0] = '\0';
if (li->usri3_priv != USER_PRIV_ADMIN)
{
strcpy (oldpwd, getpass ("Old password: "));