Mercurial > octave
changeset 32460:ba52044813f1
Set uninitialized m_ip field
The field was not set during some circumstances
which could potentially give the wrong line number in
warnings and errors from the bytecode interpreter.
* stack-frame.cc: Default init to 0.
author | Petter T. <petter.vilhelm@gmail.com> |
---|---|
date | Sat, 04 Nov 2023 01:35:04 +0100 |
parents | 29237401fe22 |
children | 09ee4030e927 |
files | libinterp/corefcn/stack-frame.cc |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/stack-frame.cc Sat Nov 04 01:35:04 2023 +0100 +++ b/libinterp/corefcn/stack-frame.cc Sat Nov 04 01:35:04 2023 +0100 @@ -94,6 +94,7 @@ m_size (m_unwind_data->m_ids_size), // The above fields in vm change during execution so we need to store them in the frame m_vm (&vm), + m_ip (0), m_nargin (nargin), m_nargout (nargout) {