Skip to content

Commit

Permalink
save t.next in case f removes t, as in Froc.next
Browse files Browse the repository at this point in the history
  • Loading branch information
duckpilot committed Apr 22, 2010
1 parent 319bd04 commit 49c523b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/froc/froc_dlist.ml
Expand Up @@ -41,7 +41,7 @@ let remove t =
let iter f d =
let rec loop t =
if not (t == d)
then (f t.data; loop t.next) in
then (let next = t.next in f t.data; loop next) in
loop d.next

let clear d =
Expand Down

0 comments on commit 49c523b

Please sign in to comment.