mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Fix non-constant initialiser for Sun CC.
This commit is contained in:
parent
94a3d8e8ad
commit
c2948b9248
@ -2261,8 +2261,14 @@ static char **remote_completion(const char *text, int len)
|
|||||||
{
|
{
|
||||||
pstring dirmask;
|
pstring dirmask;
|
||||||
int i;
|
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)
|
if (len >= PATH_MAX)
|
||||||
return(NULL);
|
return(NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user