Mercurial > octave
diff libinterp/corefcn/ls-oct-text.cc @ 26410:d644dec272ea stable
ls-oct-text.cc: Fix static analyzer detected V519 issue (bug #55347).
author | Andreas Weber <octave@josoansi.de> |
---|---|
date | Thu, 03 Jan 2019 22:54:55 +0100 |
parents | 00f796120a6d |
children | 73ce195bf66e |
line wrap: on
line diff
--- a/libinterp/corefcn/ls-oct-text.cc Thu Jan 03 22:48:07 2019 +0100 +++ b/libinterp/corefcn/ls-oct-text.cc Thu Jan 03 22:54:55 2019 +0100 @@ -308,8 +308,6 @@ const std::string& name, bool mark_global, int precision) { - bool success = true; - if (! name.empty ()) os << "# name: " << name << "\n"; @@ -326,7 +324,7 @@ long old_precision = os.precision (); os.precision (precision); - success = val.save_ascii (os); + bool success = val.save_ascii (os); // Insert an extra pair of newline characters after the data so that // multiple data elements may be handled separately by gnuplot (see