aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2013-08-21 09:40:31 +0200
committerHans Bolinder <[email protected]>2013-08-21 09:40:31 +0200
commit5960967a506c2eeadb3cbf66a1e21fff5000f08b (patch)
tree223c3c47bb3ca35de2ad0f95ddb8298546cf09c0 /lib/stdlib/src
parentc5ebeab7e56b48f47760f46247070821b9425c70 (diff)
parent4550ba795540b85d31b33cc2eda87c0e6952f222 (diff)
downloadotp-5960967a506c2eeadb3cbf66a1e21fff5000f08b.tar.gz
otp-5960967a506c2eeadb3cbf66a1e21fff5000f08b.tar.bz2
otp-5960967a506c2eeadb3cbf66a1e21fff5000f08b.zip
Merge branch 'hb/stdlib/dets_bugfix/OTP-11245' into maint
* hb/stdlib/dets_bugfix/OTP-11245: Fix a Dets bug concerning traversal of tables
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/dets.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/dets.erl b/lib/stdlib/src/dets.erl
index 50812cc532..68b157c13c 100644
--- a/lib/stdlib/src/dets.erl
+++ b/lib/stdlib/src/dets.erl
@@ -951,10 +951,10 @@ do_trav(Proc, Acc, Fun) ->
Error
end.
-do_trav(#dets_cont{bin = eof}, _Proc, Acc, _Fun) ->
- Acc;
do_trav(State, Proc, Acc, Fun) ->
case req(Proc, {match_init, State, safe}) of
+ '$end_of_table'->
+ Acc;
{cont, {Bins, NewState}} ->
do_trav_bins(NewState, Proc, Acc, Fun, lists:reverse(Bins));
Error ->