Skip to content
Snippets Groups Projects
Commit 92a288ca authored by Kristof Szabados's avatar Kristof Szabados
Browse files

it is enough to allocate a when limit is not 0.


Signed-off-by: default avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent 53d5897c
No related branches found
No related tags found
No related merge requests found
......@@ -986,13 +986,13 @@ void defRecordOfClass1(const struct_of_def *sdef, output_struct *output)
" }\n"
" if(a==0) val_ptr->n_elements=0;\n"
" } else {\n"
" int a=start_field;\n"
" if(limit==0){\n"
" if(!first_call) return -1;\n"
" val_ptr->n_elements=0;\n"
" return decoded_length+p_buf.increase_pos_padd(p_td.raw->padding)"
"+prepaddlength;\n"
" }\n"
" int a=start_field;\n"
" while(limit>0){\n"
" start_of_field=p_buf.get_pos_bit();\n"
" decoded_field_length=(*this)[a].RAW_decode(*p_td.oftype_descr,p_buf,limit,"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment