summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-05-13 06:13:36 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-05-13 06:13:36 +0000
commitd9029797fec576c517747c9adbda0d0bafdc3975 (patch)
tree784401c975d63c23f2c32bf1645d88497c015e15 /source3
parentc37e7a4e5a7d166b8e7661fe13ae355f4917503c (diff)
downloadsamba-d9029797fec576c517747c9adbda0d0bafdc3975.tar.gz
samba-d9029797fec576c517747c9adbda0d0bafdc3975.tar.bz2
samba-d9029797fec576c517747c9adbda0d0bafdc3975.zip
Fix non-constant initialiser for Sun CC.
(This used to be commit c2948b9248016388f9b7c5595b0e1aba7e1ace8d)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/client.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index b498b5b4a8..690cc99f7f 100644
--- a/source3/client/client.c
+++ b/source3/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);