use vector push_back method to allocate required

storgae for log service objects vs using index operator.
master
Joseph Giovatto 7 years ago
parent 344ace8f52
commit cc420d1cb9

@ -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;

Loading…
Cancel
Save