mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 00:01:15 -03:00
Added constructor to completion_t for guarranted initialzation of flags attribute.
This commit is contained in:
@@ -897,7 +897,8 @@ static int wildcard_expand_internal( const wchar_t *wc,
|
||||
else
|
||||
{
|
||||
res = 1;
|
||||
completion_t data_to_push = { base_dir };
|
||||
completion_t data_to_push;
|
||||
data_to_push.completion = base_dir;
|
||||
if ( std::find( out.begin(), out.end(), data_to_push ) != out.end() ){
|
||||
out.push_back( data_to_push);
|
||||
}
|
||||
@@ -970,7 +971,8 @@ static int wildcard_expand_internal( const wchar_t *wc,
|
||||
}
|
||||
else
|
||||
{
|
||||
completion_t data_to_push = { long_name };
|
||||
completion_t data_to_push;
|
||||
data_to_push.completion = long_name;
|
||||
out.push_back( data_to_push );
|
||||
}
|
||||
res = 1;
|
||||
|
||||
Reference in New Issue
Block a user