summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2002-09-29 06:44:13 +0000
committerRichard Sharpe <sharpe@samba.org>2002-09-29 06:44:13 +0000
commited521b0cc4cb9db5e844619d19471ee8acda30f7 (patch)
treed3a4b218da7502ba4b102a66662527dd8ecce7ba /source3/client
parentdf316e3cd931baaa3793a260b5f2e70cb8235580 (diff)
downloadsamba-ed521b0cc4cb9db5e844619d19471ee8acda30f7.tar.gz
samba-ed521b0cc4cb9db5e844619d19471ee8acda30f7.tar.bz2
samba-ed521b0cc4cb9db5e844619d19471ee8acda30f7.zip
Make sure that variable does not shadow a parameter.
(This used to be commit d83cae2bbd1625aeb3b7c73ba8dde2d1371e7f89)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index de6bf0e1b0..f25ed1623b 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2436,18 +2436,18 @@ static struct cli_state *do_connect(const char *server, const char *share)
if (!cli_send_tconX(c, sharename, "?????",
password, strlen(password)+1)) {
- pstring share;
+ pstring full_share;
/*
* Some servers require \\server\share for the share
* while others are happy with share as we gave above
* Lets see if we give it the long form if it works
*/
- pstrcpy(share, "\\\\");
- pstrcat(share, server);
- pstrcat(share, "\\");
- pstrcat(share, sharename);
- if (!cli_send_tconX(c, share, "?????", password,
+ pstrcpy(full_share, "\\\\");
+ pstrcat(full_share, server);
+ pstrcat(full_share, "\\");
+ pstrcat(full_share, sharename);
+ if (!cli_send_tconX(c, full_share, "?????", password,
strlen(password) + 1)) {
d_printf("tree connect failed: %s\n", cli_errstr(c));