]> git.eshelyaron.com Git - emacs.git/commitdiff
(print_error_message): Don't crash if (cdr data) is not a list.
authorRichard M. Stallman <rms@gnu.org>
Sun, 21 Feb 1999 19:56:08 +0000 (19:56 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 21 Feb 1999 19:56:08 +0000 (19:56 +0000)
src/print.c

index a24826f24c484bf90f9ee97268e719ec6f450132..69a3d68f42893adcd26c4acaf700bd0dfcb56bfc 100644 (file)
@@ -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))