1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00

Merge of non-static initialisation fixes from 3.0

This commit is contained in:
Tim Potter 0001-01-01 00:00:00 +00:00
parent 34a0c7313a
commit 7f32b3f016

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