* passwd.c (main): Initialize oldpwd before beeing used.
This commit is contained in:
parent
a9867e1b58
commit
deb2b467e9
|
@ -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.
|
||||
|
|
|
@ -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: "));
|
||||
|
|
Loading…
Reference in New Issue