use vector push_back method to allocate required

storgae for log service objects vs using index operator.
This commit is contained in:
Joseph Giovatto 2017-11-13 13:36:39 -05:00
parent 344ace8f52
commit cc420d1cb9
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ bool phy::init(phy_args_t *args,
{
std::vector<void*> log_vec;
for (int i=0;i<args->nof_phy_threads;i++) {
log_vec[i] = (void*) log_h;
log_vec.push_back((void*)log_h);
}
init(args, cfg, radio_handler_, mac, log_vec);
return true;