File 0138-Fix-ERL-1189.patch of Package erlang

From 42a8bb4497268680780a88279f0347822efa10ac Mon Sep 17 00:00:00 2001
From: montag451 <montag451@laposte.net>
Date: Mon, 9 Mar 2020 23:37:07 +0100
Subject: [PATCH 1/2] Fix ERL-1189

---
 lib/asn1/src/asn1ct.erl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/asn1/src/asn1ct.erl b/lib/asn1/src/asn1ct.erl
index 5708d5cb7e..2fd98ab51f 100644
--- a/lib/asn1/src/asn1ct.erl
+++ b/lib/asn1/src/asn1ct.erl
@@ -1693,6 +1693,9 @@ create_pdec_command(ModName,{'CHOICE',[Comp=#'ComponentType'{name=C1}|_]},TNL=[C
     create_pdec_command(ModName,[Comp],TNL,Acc);
 create_pdec_command(ModName,{'CHOICE',[#'ComponentType'{}|Comps]},TNL,Acc) ->
     create_pdec_command(ModName,{'CHOICE',Comps},TNL,Acc);
+create_pdec_command(ModName,{'CHOICE',{Cs1,Cs2}},TNL,Acc)
+  when is_list(Cs1),is_list(Cs2) ->
+    create_pdec_command(ModName,{'CHOICE',Cs1 ++ Cs2},TNL,Acc);
 create_pdec_command(ModName,#'Externaltypereference'{module=M,type=C1},
 		    TypeNameList,Acc) ->
      #type{def=Def} = get_referenced_type(M,C1),
-- 
2.16.4

openSUSE Build Service is sponsored by