git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34a0c73
)
Merge of non-static initialisation fixes from 3.0
author
Tim Potter
<tpot@samba.org>
Wed, 28 May 2003 01:05:28 +0000
(
01:05
+0000)
committer
Tim Potter
<tpot@samba.org>
Wed, 28 May 2003 01:05:28 +0000
(
01:05
+0000)
source/client/client.c
patch
|
blob
|
history
diff --git
a/source/client/client.c
b/source/client/client.c
index b498b5b4a88638521d4c50a799ce8ac71ea40100..690cc99f7feb2ddd6847d5d46d4188e1db20c48c 100644
(file)
--- a/
source/client/client.c
+++ b/
source/client/client.c
@@
-2261,8
+2261,14
@@
static char **remote_completion(const char *text, int len)
{
pstring dirmask;
int i;
- completion_remote_t info = { "", NULL, 1,
len, text, len
};
+ completion_remote_t info = { "", NULL, 1,
0, NULL, 0
};
+ /* can't have non-static intialisation on Sun CC, so do it
+ at run time here */
+ info.samelen = len;
+ info.text = text;
+ info.len = len;
+
if (len >= PATH_MAX)
return(NULL);