From c52637029d5c1fc66ce130c72bad33f542ce5b70 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 28 May 2003 01:05:28 +0000 Subject: [PATCH] Merge of non-static initialisation fixes from 3.0 (This used to be commit 7f32b3f016ecc824ddcdaeb840d5d36224aa8141) --- source3/client/client.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source3/client/client.c b/source3/client/client.c index b498b5b4a88..690cc99f7fe 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);