aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_imm.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asn1/src/asn1ct_imm.erl')
-rw-r--r--lib/asn1/src/asn1ct_imm.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/asn1/src/asn1ct_imm.erl b/lib/asn1/src/asn1ct_imm.erl
index 44282b4b55..7994889a38 100644
--- a/lib/asn1/src/asn1ct_imm.erl
+++ b/lib/asn1/src/asn1ct_imm.erl
@@ -1680,8 +1680,6 @@ enc_cg({apply,F0,As0,Dst}) ->
As = enc_call_args(As0, ""),
emit([mk_val(Dst)," = "]),
case F0 of
- {var,F} ->
- emit([F,"(",As,")"]);
{M,F} ->
emit([{asis,M},":",{asis,F},"(",As,")"]);
F when is_atom(F) ->
@@ -2028,6 +2026,7 @@ enc_opt_al_cond_1([[C|Act0]|Cs0], Al0, CAcc, AAcc) ->
enc_opt_al_cond_1(Cs0, Al0, [[C|Act]|CAcc], [Al|AAcc]);
enc_opt_al_cond_1([], _, CAcc, AAcc) ->
Al = case lists:usort(AAcc) of
+ [] -> unknown;
[Al0] -> Al0;
[_|_] -> unknown
end,