summaryrefslogtreecommitdiffstats
path: root/source/client/clientutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/client/clientutil.c')
-rw-r--r--source/client/clientutil.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/client/clientutil.c b/source/client/clientutil.c
index 41c482196ad..e684d426121 100644
--- a/source/client/clientutil.c
+++ b/source/client/clientutil.c
@@ -31,7 +31,7 @@
pstring service="";
pstring desthost="";
-pstring myname = "";
+extern pstring myname;
pstring password = "";
pstring username="";
pstring workgroup=WORKGROUP;
@@ -819,10 +819,8 @@ BOOL cli_open_sockets(int port)
DEBUG(5,("Opening sockets\n"));
if (*myname == 0)
- {
- get_myname(myname,NULL);
- strupper(myname);
- }
+ get_myname(myname,NULL);
+ strupper(myname);
if (!have_ip)
{