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:
parent
830681f5dd
commit
5944cc6ee4
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user