From aca0710066fc4517eac7bbcee9b21a68d45496fd Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 30 Aug 2001 05:54:41 +0000 Subject: merge from 2.2 (This used to be commit d31e1b63b5a13ec585da18971e85c9eaa941ed33) --- source3/utils/smbpasswd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index e02a8115a1..7ca9c37f28 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -558,6 +558,8 @@ static int process_root(int argc, char *argv[]) ZERO_STRUCT(user_name); ZERO_STRUCT(user_password); + user_name[0] = '\0'; + while ((ch = getopt(argc, argv, "ax:d:e:hmnj:r:sR:D:U:L")) != EOF) { switch(ch) { case 'L': @@ -685,6 +687,7 @@ static int process_root(int argc, char *argv[]) switch(argc) { case 0: + fstrcpy(user_name, ""); break; case 1: fstrcpy(user_name, argv[0]); -- cgit