Mercurial > octave
changeset 28984:a6b7085c8ac2
maint: merge stable to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 22 Oct 2020 18:59:34 +0200 |
parents | 08a01acc2fcf (current diff) 6d37fa1a786e (diff) |
children | 69ec8d9e769b |
files | libinterp/corefcn/ls-mat5.cc |
diffstat | 1 files changed, 13 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/ls-mat5.cc Fri Jul 03 17:56:48 2015 -0500 +++ b/libinterp/corefcn/ls-mat5.cc Thu Oct 22 18:59:34 2020 +0200 @@ -980,20 +980,24 @@ m2 = subsys_ov.scalar_map_value (); m2 = m2.contents ("MCOS").scalar_map_value (); tc2 = m2.contents ("MCOS").cell_value ()(1 + off).cell_value ()(1); - m2 = tc2.scalar_map_value (); octave::stack_frame::local_vars_map local_vars; - if (m2.nfields () > 0) + if (! tc2.isempty ()) { - octave_value tmp; - - for (auto p0 = m2.begin (); p0 != m2.end (); p0++) + m2 = tc2.scalar_map_value (); + + if (m2.nfields () > 0) { - std::string key = m2.key (p0); - octave_value val = m2.contents (p0); - - local_vars[key] = val; + octave_value tmp; + + for (auto p0 = m2.begin (); p0 != m2.end (); p0++) + { + std::string key = m2.key (p0); + octave_value val = m2.contents (p0); + + local_vars[key] = val; + } } }