Commit 8c29413d authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(print_error_message): Don't crash if (cdr data) is not a list.

parent 8f6df9b5
......@@ -1054,7 +1054,7 @@ print_error_message (data, stream)
/* For file-error, make error message by concatenating
all the data items. They are all strings. */
if (!NILP (file_error) && !NILP (tail))
if (!NILP (file_error) && CONSP (tail))
errmsg = XCONS (tail)->car, tail = XCONS (tail)->cdr;
if (STRINGP (errmsg))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment