diff options
author | Tim Potter <tpot@samba.org> | 2003-05-28 01:05:28 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-05-28 01:05:28 +0000 |
commit | c52637029d5c1fc66ce130c72bad33f542ce5b70 (patch) | |
tree | da4f15e37f604a66e323221146831c3afe34a756 /source3/client/client.c | |
parent | d1f294b3c4dccd3cd02189d1d6bc7563d4df4ff6 (diff) | |
download | samba-c52637029d5c1fc66ce130c72bad33f542ce5b70.tar.gz samba-c52637029d5c1fc66ce130c72bad33f542ce5b70.tar.bz2 samba-c52637029d5c1fc66ce130c72bad33f542ce5b70.zip |
Merge of non-static initialisation fixes from 3.0
(This used to be commit 7f32b3f016ecc824ddcdaeb840d5d36224aa8141)
Diffstat (limited to 'source3/client/client.c')
-rw-r--r-- | source3/client/client.c | 8 |
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); |