diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-07-31 13:34:51 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-07-31 13:34:51 +0000 |
commit | b20b5f9c9a2d8ea391218872a6b5d619a3e8017a (patch) | |
tree | d1b07a81e96e72d2909c2fc9022ad89ff2e98402 | |
parent | 726744c321418c560acb89cea135c26d7488e98b (diff) | |
download | newlib-unlabeled-1.1.1.1.2.zip newlib-unlabeled-1.1.1.1.2.tar.gz newlib-unlabeled-1.1.1.1.2.tar.bz2 |
* passwd.c (main): Initialize oldpwd before beeing used.github/unlabeled-1.1.1.1.2unlabeled-1.1.1.1.2
-rw-r--r-- | winsup/utils/passwd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/utils/passwd.c b/winsup/utils/passwd.c index 700ea4d..e6c9409 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: ")); |