Mercurial > octave
changeset 24070:1091931bd63c
don't clear tmp scope created for who -file (bug #52022)
* variables.cc (do_who): Don't add
symbol_table::scope::clear_variables to the unwind_protect stack. The
tmp scope will be cleared when it goes out of scope.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 21 Sep 2017 12:45:28 -0400 |
parents | f8b8a8e6bd79 |
children | 3f036b46a130 |
files | libinterp/corefcn/variables.cc |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/variables.cc Wed Sep 20 15:34:33 2017 -0700 +++ b/libinterp/corefcn/variables.cc Thu Sep 21 12:45:28 2017 -0400 @@ -1657,8 +1657,6 @@ cs.push (&tmp_scope, 0); frame.add_method (cs, &octave::call_stack::pop); - frame.add_method (tmp_scope, &octave::symbol_table::scope::clear_variables); - octave::feval ("load", octave_value (nm), 0); std::string newmsg = "Variables in the file " + nm + ":\n\n";