# HG changeset patch # User Arun Giridhar # Date 1669667283 18000 # Node ID 785ac0d19116ed2a3d91531bb7b0ae585d8bd867 # Parent b870a8c28aaa1115685389144f15f95a266037d1 error.cc: Fix potential null pointer dereference (bug #63436) diff -r b870a8c28aaa -r 785ac0d19116 libinterp/corefcn/error.cc --- 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,