From b3e43e047b20df684927afef5870ea5aa0a1ecd8 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 29 Aug 2001 22:47:59 +0000 Subject: Fix uninitialised variables. Spotted by "Esh, Andrew" (This used to be commit 9081af4fe584d222c00587d6d3c81e12d6611222) --- source3/utils/smbpasswd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/utils/smbpasswd.c') 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': -- cgit