From 8c29413d718ee9bfb3e281b456f564915381e395 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 21 Feb 1999 19:56:08 +0000 Subject: [PATCH] (print_error_message): Don't crash if (cdr data) is not a list. --- src/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/print.c b/src/print.c index a24826f24c4..69a3d68f428 100644 --- a/src/print.c +++ b/src/print.c @@ -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)) -- 2.39.2