Mercurial > octave-libtiff
changeset 21618:d8d0020bf1e9
Fix hang when querying dbstack (bug #47605).
* toplev.cc (do_debug_user_code, do_debug_user_code_line,
do_debug_user_code_column): Correct oversight where while loop
variable i was never decremented.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 13 Apr 2016 14:01:39 -0700 |
parents | 1fff60b89786 |
children | f458313c0de4 |
files | libinterp/corefcn/toplev.cc |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/toplev.cc Wed Apr 13 19:23:21 2016 +0100 +++ b/libinterp/corefcn/toplev.cc Wed Apr 13 14:01:39 2016 -0700 @@ -319,7 +319,7 @@ while (i != 0) { - const stack_frame& elt = cs[i]; + const stack_frame& elt = cs[i--]; octave_function *f = elt.m_fcn; @@ -347,7 +347,7 @@ while (i != 0) { - const stack_frame& elt = cs[i]; + const stack_frame& elt = cs[i--]; octave_function *f = elt.m_fcn; @@ -378,7 +378,7 @@ while (i != 0) { - const stack_frame& elt = cs[i]; + const stack_frame& elt = cs[i--]; octave_function *f = elt.m_fcn;