summaryrefslogtreecommitdiff
path: root/source/utils
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2001-08-30 05:54:41 +0000
committerGerald Carter <jerry@samba.org>2001-08-30 05:54:41 +0000
commitd31e1b63b5a13ec585da18971e85c9eaa941ed33 (patch)
tree7a23dac759065f14d8587dc104bdb0ec89975b61 /source/utils
parent3e8ccb420260591f362fa8a9d1221481449f8ef7 (diff)
downloadsamba-d31e1b63b5a13ec585da18971e85c9eaa941ed33.tar.gz
merge from 2.2
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 e02a8115a11..7ca9c37f28b 100644
--- a/source/utils/smbpasswd.c
+++ b/source/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]);