Commit 00547554 authored by Kristof Szabados's avatar Kristof Szabados

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

Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent e5c1c9e3
......@@ -1196,7 +1196,6 @@ public final class RecordOfGenerator {
source.append("\t\t\t\t\tvalueElements.clear();\n");
source.append("\t\t\t\t}\n");
source.append("\t\t\t} else {\n");
source.append("\t\t\t\tint a = start_field;\n");
source.append("\t\t\t\t\tif (limit == 0) {\n");
source.append("\t\t\t\t\tif (!first_call) {\n");
source.append("\t\t\t\t\t\treturn -1;\n");
......@@ -1204,6 +1203,7 @@ public final class RecordOfGenerator {
source.append("\t\t\t\t\tvalueElements.clear();\n");
source.append("\t\t\t\t\treturn decoded_length + buff.increase_pos_padd(p_td.raw.padding) + prepaddlength;\n");
source.append("\t\t\t\t}\n");
source.append("\t\t\t\tint a = start_field;\n");
source.append("\t\t\t\twhile (limit > 0) {\n");
source.append("\t\t\t\t\tstart_of_field = buff.get_pos_bit();\n");
source.append("\t\t\t\t\tdecoded_field_length = get_at(a).RAW_decode(p_td.oftype_descr, buff, limit, top_bit_ord, true, -1, true, null);\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment