diff options
author | Valerii Zapodovnikov <val.zapod.vz@gmail.com> | 2020-01-25 23:25:34 +0300 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-01-26 15:40:30 -0500 |
commit | 7f1d71424fc7b538e1e79ba7e1a697e75dd6d594 (patch) | |
tree | 91dda0e3f81770d0a39406f3cac76f27a95e9594 /gr-dtv | |
parent | 4d5b25930978a07800e3df77bc4dbb5b430d3135 (diff) |
gr-dtv: add missing std::nothrow
Diffstat (limited to 'gr-dtv')
-rw-r--r-- | gr-dtv/lib/dvbt/dvbt_reference_signals_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-dtv/lib/dvbt/dvbt_reference_signals_impl.cc b/gr-dtv/lib/dvbt/dvbt_reference_signals_impl.cc index f7eedcd4d7..ee15e8c9ab 100644 --- a/gr-dtv/lib/dvbt/dvbt_reference_signals_impl.cc +++ b/gr-dtv/lib/dvbt/dvbt_reference_signals_impl.cc @@ -149,7 +149,7 @@ dvbt_pilot_gen::dvbt_pilot_gen(const dvbt_configure& c) d_sampling_freq_correction = 0.0; // allocate PRBS buffer - d_wk = new char[d_Kmax - d_Kmin + 1]; + d_wk = new (std::nothrow) char[d_Kmax - d_Kmin + 1]; if (d_wk == NULL) { std::cerr << "Reference Signals, cannot allocate memory for d_wk." << std::endl; throw std::bad_alloc(); |