aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/dets.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2013-08-21 09:43:44 +0200
committerHans Bolinder <[email protected]>2013-08-21 09:43:44 +0200
commit619f74597b36ed76826a76cc6499cc136fc66f3e (patch)
treeea9753f9e9f23e72d23fcffacd241f8d823786f6 /lib/stdlib/src/dets.erl
parent252eae09079533022061f6ec6f2dc1310383d4c4 (diff)
parent5960967a506c2eeadb3cbf66a1e21fff5000f08b (diff)
downloadotp-619f74597b36ed76826a76cc6499cc136fc66f3e.tar.gz
otp-619f74597b36ed76826a76cc6499cc136fc66f3e.tar.bz2
otp-619f74597b36ed76826a76cc6499cc136fc66f3e.zip
Merge branch 'maint'
* maint: Fix a Dets bug concerning traversal of tables
Diffstat (limited to 'lib/stdlib/src/dets.erl')
-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 d743467e97..44dad04f43 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 ->