summaryrefslogtreecommitdiff
path: root/source/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
commit9081af4fe584d222c00587d6d3c81e12d6611222 (patch)
tree0c939a938645759d8ce95552ec6ff6380a6659a2 /source/utils
parent3af2de7ed26e5a26a273be2dcd9c5565c586fe47 (diff)
downloadsamba-9081af4fe584d222c00587d6d3c81e12d6611222.tar.gz
Fix uninitialised variables. Spotted by "Esh, Andrew" <AEsh@tricord.com>
Diffstat (limited to 'source/utils')
-rw-r--r--source/utils/smbpasswd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/utils/smbpasswd.c b/source/utils/smbpasswd.c
index 3911987991b..e02a8115a11 100644
--- a/source/utils/smbpasswd.c
+++ b/source/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':