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

This commit is contained in:
Corinna Vinschen 2000-07-31 13:34:51 +00:00
parent 726744c321
commit b20b5f9c9a
1 changed files with 1 additions and 0 deletions

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: "));