aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/compiler/diameter_dict_util.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2013-10-04 10:57:07 +0200
committerAnders Svensson <[email protected]>2013-12-01 16:38:52 +0100
commitb4b8a2130348d8828a53303d7003e24abfc692f2 (patch)
tree955fbb5ba98a40bc938811dbd039e8d9ddfb330d /lib/diameter/src/compiler/diameter_dict_util.erl
parent350e7e93696c4a2f553a64232b5a52f256b5c0e7 (diff)
downloadotp-b4b8a2130348d8828a53303d7003e24abfc692f2.tar.gz
otp-b4b8a2130348d8828a53303d7003e24abfc692f2.tar.bz2
otp-b4b8a2130348d8828a53303d7003e24abfc692f2.zip
Fix diameter_make:flatten/1
To set @avp_vendor_id, @codecs and @custom_types as required for imported avps.
Diffstat (limited to 'lib/diameter/src/compiler/diameter_dict_util.erl')
-rw-r--r--lib/diameter/src/compiler/diameter_dict_util.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/diameter/src/compiler/diameter_dict_util.erl b/lib/diameter/src/compiler/diameter_dict_util.erl
index eef0cb26d4..3941f30e03 100644
--- a/lib/diameter/src/compiler/diameter_dict_util.erl
+++ b/lib/diameter/src/compiler/diameter_dict_util.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2011. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2013. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -265,6 +265,9 @@ io(K, Id)
io(vendor = K, {Id, Name}) ->
[?NL, section(K) | [[?SP, tok(X)] || X <- [Id, Name]]];
+io(_, []) ->
+ [];
+
io(avp_types = K, Body) ->
[?NL, ?NL, section(K), ?NL, [body(K,A) || A <- Body]];