changeset 24368:d4edd0f4edfa

(print_error_message): Don't crash if (cdr data) is not a list.
author Richard M. Stallman <rms@gnu.org>
date Sun, 21 Feb 1999 19:56:08 +0000
parents f9d5fff966f0
children 8cbfa7848416
files src/print.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/print.c	Sun Feb 21 16:36:07 1999 +0000
+++ b/src/print.c	Sun Feb 21 19:56:08 1999 +0000
@@ -1054,7 +1054,7 @@
 
   /* 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))