aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2013-08-03 22:01:11 +0200
committerHans Bolinder <[email protected]>2013-08-19 11:47:23 +0200
commit4550ba795540b85d31b33cc2eda87c0e6952f222 (patch)
tree9008eddbb079f625975f150fece10fdb44eb3e76 /lib/stdlib/src
parent2938ab325fd04d342036d77e214246276f00ffe1 (diff)
downloadotp-4550ba795540b85d31b33cc2eda87c0e6952f222.tar.gz
otp-4550ba795540b85d31b33cc2eda87c0e6952f222.tar.bz2
otp-4550ba795540b85d31b33cc2eda87c0e6952f222.zip
Fix a Dets bug concerning traversal of tables
The bug was introduced in R16B. Thanks to Manuel DurĂ¡n Aguete.
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 ->