diff options
author | 2012-01-16 23:54:57 +0530 | |
---|---|---|
committer | 2012-01-16 23:54:57 +0530 | |
commit | 7e124cf95e2a85897bd78b6362ff9b9b1b87c4b8 (patch) | |
tree | 38020068c1e59779f7f778c979f0ee881253e62f /parser.cpp | |
parent | 6f330f961b0186aa4d5f2f3f45b19b84ec7b3516 (diff) |
Added constructor to completion_t for guarranted initialzation of flags attribute.
Diffstat (limited to 'parser.cpp')
-rw-r--r-- | parser.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1944,7 +1944,8 @@ static int parse_job( process_t *p, } } } - completion_t data_to_push = { nxt }; + completion_t data_to_push; + data_to_push.completion = nxt; args->push_back( data_to_push ); } @@ -1998,9 +1999,11 @@ static int parse_job( process_t *p, // al_truncate( args, 0 ); args->clear(); // al_push( args, halloc_wcsdup( j, L"cd" ) ); - completion_t comp = { L"cd" }; + completion_t comp; + comp.completion = L"cd"; args->push_back(comp); - completion_t comp2 = { tmp }; + completion_t comp2; + comp2.completion = tmp; args->push_back( comp2 ); // free(tmp); |