summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-08-29 22:47:59 +0000
committerTim Potter <tpot@samba.org>2001-08-29 22:47:59 +0000
commitb3e43e047b20df684927afef5870ea5aa0a1ecd8 (patch)
tree6c397841276aafe471610e1c41bc8452a414ff8d /source3/utils
parent6c38114f57bebec95ce8252e675e8699f683ff5e (diff)
downloadsamba-b3e43e047b20df684927afef5870ea5aa0a1ecd8.tar.gz
samba-b3e43e047b20df684927afef5870ea5aa0a1ecd8.tar.bz2
samba-b3e43e047b20df684927afef5870ea5aa0a1ecd8.zip
Fix uninitialised variables. Spotted by "Esh, Andrew" <AEsh@tricord.com>
(This used to be commit 9081af4fe584d222c00587d6d3c81e12d6611222)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbpasswd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index 3911987991..e02a8115a1 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -555,6 +555,9 @@ static int process_root(int argc, char *argv[])
char *old_passwd = NULL;
char *remote_machine = NULL;
+ ZERO_STRUCT(user_name);
+ ZERO_STRUCT(user_password);
+
while ((ch = getopt(argc, argv, "ax:d:e:hmnj:r:sR:D:U:L")) != EOF) {
switch(ch) {
case 'L':