diff options
Diffstat (limited to 'source3/lib/substitute.c')
-rw-r--r-- | source3/lib/substitute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c index 1e3f51e2d8..ef68bce985 100644 --- a/source3/lib/substitute.c +++ b/source3/lib/substitute.c @@ -38,13 +38,13 @@ static fstring smb_user_name; void set_local_machine_name(const char* local_name, BOOL perm) { static BOOL already_perm = False; + fstring tmp_local_machine; + if (already_perm) return; already_perm = perm; - fstring tmp_local_machine; - fstrcpy(tmp_local_machine,local_name); trim_string(tmp_local_machine," "," "); strlower(tmp_local_machine); @@ -60,13 +60,13 @@ void set_local_machine_name(const char* local_name, BOOL perm) void set_remote_machine_name(const char* remote_name, BOOL perm) { static BOOL already_perm = False; + fstring tmp_remote_machine; + if (already_perm) return; already_perm = perm; - fstring tmp_remote_machine; - fstrcpy(tmp_remote_machine,remote_name); trim_string(tmp_remote_machine," "," "); strlower(tmp_remote_machine); |