diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-01-16 23:54:57 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-01-16 23:54:57 +0530 |
commit | 7e124cf95e2a85897bd78b6362ff9b9b1b87c4b8 (patch) | |
tree | 38020068c1e59779f7f778c979f0ee881253e62f /expand.cpp | |
parent | 6f330f961b0186aa4d5f2f3f45b19b84ec7b3516 (diff) |
Added constructor to completion_t for guarranted initialzation of flags attribute.
Diffstat (limited to 'expand.cpp')
-rw-r--r-- | expand.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1380,7 +1380,8 @@ static int expand_variables2( wchar_t * in, std::vector<completion_t> &out, int wchar_t *next = (wchar_t *)al_get( &var_item_list, j ); if( is_ok && (i == 0) && (!in[stop_pos]) ) { - completion_t data_to_push = { next }; + completion_t data_to_push; + data_to_push.completion = next; out.push_back( data_to_push ); } else @@ -1464,7 +1465,8 @@ static int expand_variables2( wchar_t * in, std::vector<completion_t> &out, int if( !empty ) { - completion_t data_to_push = { in }; + completion_t data_to_push; + data_to_push.completion = in; out.push_back( data_to_push ); } else @@ -1566,7 +1568,8 @@ static int expand_brackets( wchar_t *in, int flags, std::vector<completion_t> &o if( bracket_begin == 0 ) { - completion_t data_to_push = { in }; + completion_t data_to_push; + data_to_push.completion = in; out.push_back( data_to_push ); return 1; } |