Mercurial > octave
changeset 26411:ab6b8d8e0307 stable
oct-stream.cc: Fix static analyzer detected V519 issue (bug #55347).
author | Andreas Weber <octave@josoansi.de> |
---|---|
date | Thu, 03 Jan 2019 23:09:18 +0100 |
parents | d644dec272ea |
children | ccacd7162520 |
files | libinterp/corefcn/oct-stream.cc |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/oct-stream.cc Thu Jan 03 22:54:55 2019 +0100 +++ b/libinterp/corefcn/oct-stream.cc Thu Jan 03 23:09:18 2019 +0100 @@ -4607,7 +4607,6 @@ bool all_char_conv = fmt_list.all_character_conversions (); Matrix mval; - double *data = nullptr; octave_idx_type max_size = 0; octave_idx_type max_conv = 0; @@ -4665,7 +4664,7 @@ max_size = 32; } - data = mval.fortran_vec (); + double *data = mval.fortran_vec (); if (isp) {