mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 18:41:25 -08:00
(print_error_message): Pass copy of caller name to message_dolog.
This commit is contained in:
parent
e4dd341972
commit
11fb15d5c4
1 changed files with 3 additions and 1 deletions
|
|
@ -1025,7 +1025,9 @@ print_error_message (data, stream, context, caller)
|
|||
*Messages*. */
|
||||
if (!NILP (caller) && SYMBOLP (caller))
|
||||
{
|
||||
const char *name = SDATA (SYMBOL_NAME (caller));
|
||||
Lisp_Object cname = SYMBOL_NAME (caller);
|
||||
char *name = alloca (SBYTES (cname));
|
||||
bcopy (SDATA (cname), name, SBYTES (cname));
|
||||
message_dolog (name, strlen (name), 0, 0);
|
||||
message_dolog (": ", 2, 0, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue