From b20b5f9c9a2d8ea391218872a6b5d619a3e8017a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 31 Jul 2000 13:34:51 +0000 Subject: [PATCH] * passwd.c (main): Initialize oldpwd before beeing used. --- winsup/utils/passwd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/winsup/utils/passwd.c b/winsup/utils/passwd.c index 700ea4d43..e6c940900 100644 --- a/winsup/utils/passwd.c +++ b/winsup/utils/passwd.c @@ -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: "));