diff options
author | Björn Gustavsson <[email protected]> | 2013-02-21 13:55:29 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-05-31 14:52:13 +0200 |
commit | aa81984614f5b53d3d9a94f06334cf94e1fc43ad (patch) | |
tree | 93287b9513ad725b818a58d518fdd81551617474 /lib/asn1/src/asn1ct_constructed_per.erl | |
parent | a0340855b3d92869ade4c48886685ff75fe17c8c (diff) | |
download | otp-aa81984614f5b53d3d9a94f06334cf94e1fc43ad.tar.gz otp-aa81984614f5b53d3d9a94f06334cf94e1fc43ad.tar.bz2 otp-aa81984614f5b53d3d9a94f06334cf94e1fc43ad.zip |
Don't call asn1ct_name:clear/0 directly after asn1ct_name:start/0
Ensure that asn1ct_name:start/0 will call asn1ct_name:clear/0 if the
name server process is already running so that we can be sure that
the variables are cleared.
Diffstat (limited to 'lib/asn1/src/asn1ct_constructed_per.erl')
-rw-r--r-- | lib/asn1/src/asn1ct_constructed_per.erl | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/asn1/src/asn1ct_constructed_per.erl b/lib/asn1/src/asn1ct_constructed_per.erl index aa5ee18c80..06b315a86f 100644 --- a/lib/asn1/src/asn1ct_constructed_per.erl +++ b/lib/asn1/src/asn1ct_constructed_per.erl @@ -227,7 +227,6 @@ gen_decode_constructed(Erule, Typename, #type{}=D) -> Imm0 = gen_dec_constructed_imm(Erule, Typename, #type{}=D), Imm = opt_imm(Imm0), asn1ct_name:start(), - asn1ct_name:clear(), emit_gen_dec_imm(Imm), emit([".",nl,nl]). @@ -489,7 +488,6 @@ gen_encode_choice(Erule,Typename,D) when is_record(D,type) -> gen_decode_choice(Erules,Typename,D) when is_record(D,type) -> asn1ct_name:start(), - asn1ct_name:clear(), asn1ct_name:new(bytes), {'CHOICE',CompList} = D#type.def, Ext = extensible_enc(CompList), |