fix unitialized var in pdu.h

This commit is contained in:
Andre Puschmann 2019-05-07 11:01:53 +02:00
parent aca1e9612d
commit 0f6997170b
1 changed files with 13 additions and 11 deletions

View File

@ -37,17 +37,19 @@ template<class SubH>
class pdu
{
public:
pdu(uint32_t max_subheaders_) : subheaders(max_subheaders_) {
max_subheaders = max_subheaders_;
nof_subheaders = 0;
cur_idx = -1;
pdu_len = 0;
rem_len = 0;
last_sdu_idx = -1;
pdu_is_ul = false;
buffer_tx = NULL;
total_sdu_len = 0;
pdu(uint32_t max_subheaders_) :
max_subheaders(max_subheaders_),
subheaders(max_subheaders_),
nof_subheaders(0),
cur_idx(-1),
pdu_len(0),
rem_len(0),
last_sdu_idx(-1),
pdu_is_ul(false),
buffer_tx(nullptr),
sdu_offset_start(0),
total_sdu_len(0)
{
}
void fprint(FILE *stream) {