aboutsummaryrefslogtreecommitdiff
path: root/winsup/utils
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2000-07-31 13:35:39 +0000
committerCorinna Vinschen <corinna@vinschen.de>2000-07-31 13:35:39 +0000
commitdeb2b467e949bc9a2ba4d06436f43531bd9827a8 (patch)
tree1cc35456ed84b24ff33a42d6a53ebf6ae02e9d17 /winsup/utils
parenta9867e1b58dc5c8c3c29f4a54be5a23310254eab (diff)
downloadnewlib-deb2b467e949bc9a2ba4d06436f43531bd9827a8.zip
newlib-deb2b467e949bc9a2ba4d06436f43531bd9827a8.tar.gz
newlib-deb2b467e949bc9a2ba4d06436f43531bd9827a8.tar.bz2
* passwd.c (main): Initialize oldpwd before beeing used.
Diffstat (limited to 'winsup/utils')
-rw-r--r--winsup/utils/ChangeLog4
-rw-r--r--winsup/utils/passwd.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 71738b2..4b5b143 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -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.
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: "));