aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVlad Dumitrescu <[email protected]>2014-02-05 18:30:12 +0100
committerVlad Dumitrescu <[email protected]>2014-02-05 18:40:02 +0100
commitfe6403dcdba3e8655a258bf0be2ee6a24777faa9 (patch)
treefdb712544b6eadd7a929b324bf35336c3e34b221 /lib
parent6ad3988cc6c12fab863705d2c41bceb73ea100aa (diff)
downloadotp-fe6403dcdba3e8655a258bf0be2ee6a24777faa9.tar.gz
otp-fe6403dcdba3e8655a258bf0be2ee6a24777faa9.tar.bz2
otp-fe6403dcdba3e8655a258bf0be2ee6a24777faa9.zip
remove warning for variable exported from case
Diffstat (limited to 'lib')
-rw-r--r--lib/debugger/src/dbg_ieval.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/debugger/src/dbg_ieval.erl b/lib/debugger/src/dbg_ieval.erl
index 14a17fe304..4156f94cb5 100644
--- a/lib/debugger/src/dbg_ieval.erl
+++ b/lib/debugger/src/dbg_ieval.erl
@@ -505,12 +505,12 @@ lambda(Fun, As) when is_function(Fun) ->
%% ... and the fun was defined in interpreted code
{module, ?MODULE} ->
- {Mod,Name,Bs} =
+ {Mod,Name,Bs, Cs} =
case erlang:fun_info(Fun, env) of
- {env,[{{M,F},Bs0,Cs}]} ->
- {M,F,Bs0};
- {env,[{{M,F},Bs0,Cs,FName}]} ->
- {M,F,add_binding(FName, Fun, Bs0)}
+ {env,[{{M,F},Bs0,Cs0}]} ->
+ {M,F,Bs0, Cs0};
+ {env,[{{M,F},Bs0,Cs0,FName}]} ->
+ {M,F,add_binding(FName, Fun, Bs0), Cs0}
end,
{arity, Arity} = erlang:fun_info(Fun, arity),
if