changeset 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 b870a8c28aaa
children 3a2c354a52c2 4d02a2f10fa4
files libinterp/corefcn/error.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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,