From 8ccff3e99527b7303e75f860e50d74bb83fdfb15 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 8 Mar 2003 23:39:44 +0000 Subject: This is C, not C++ (This used to be commit 25d210b90b6c0377046d89a1dce7a32f94fd7859) --- source3/lib/substitute.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/lib') 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); -- cgit