Fix uninitialised variables. Spotted by "Esh, Andrew" <AEsh@tricord.com>
authorTim Potter <tpot@samba.org>
Wed, 29 Aug 2001 22:47:59 +0000 (22:47 +0000)
committerTim Potter <tpot@samba.org>
Wed, 29 Aug 2001 22:47:59 +0000 (22:47 +0000)
(This used to be commit 9081af4fe584d222c00587d6d3c81e12d6611222)

source3/utils/smbpasswd.c

index 3911987991b073e74a54be91cddf5f908ce2e97e..e02a8115a1172f9b6b2be547d071d8ac14b67fd0 100644 (file)
@@ -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':