1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

Fix non-constant initialiser for Sun CC.

This commit is contained in:
Andrew Bartlett 0001-01-01 00:00:00 +00:00
parent 94a3d8e8ad
commit c2948b9248

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