1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 12:10:34 +00:00

Always initialize private member item_size_

This commit is contained in:
Carles Fernandez 2020-06-30 10:00:41 +02:00
parent 830681f5dd
commit 5944cc6ee4
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ FirFilter::FirFilter(const ConfigurationInterface* configuration, std::string ro
{
config_ = configuration;
(*this).init();
item_size_ = 0;
if ((taps_item_type_ == "float") && (input_item_type_ == "gr_complex") && (output_item_type_ == "gr_complex"))
{
item_size_ = sizeof(gr_complex);

View File

@ -77,7 +77,7 @@ public:
inline size_t item_size() override
{
return 0;
return item_size_;
}
void connect(gr::top_block_sptr top_block) override;