Mercurial > octave
diff libinterp/corefcn/error.cc @ 31577:785ac0d19116 stable
error.cc: Fix potential null pointer dereference (bug #63436)
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Mon, 28 Nov 2022 15:28:03 -0500 |
parents | 670a0d878af1 |
children | 3a2c354a52c2 e88a07dec498 |
line wrap: on
line diff
--- a/libinterp/corefcn/error.cc Mon Nov 28 20:37:38 2022 +0100 +++ b/libinterp/corefcn/error.cc Mon Nov 28 15:28:03 2022 -0500 @@ -497,7 +497,7 @@ std::string str_id = id ? id : ""; std::string message = format_message (fmt, args); - throw_error ("usage", id, message); + throw_error ("usage", str_id, message); } void error_system::vwarning (const char *name, const char *id,