1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

Merge of non-static initialisation fixes from 3.0

(This used to be commit 7f32b3f016ecc824ddcdaeb840d5d36224aa8141)
This commit is contained in:
Tim Potter 2003-05-28 01:05:28 +00:00
parent d1f294b3c4
commit c52637029d

View File

@ -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);