diff src/buffer.c @ 707:a307f9a2021d

[xemacs-hg @ 2001-12-20 05:49:28 by andyp] sync with 21-4-6-windows
author andyp
date Thu, 20 Dec 2001 05:49:48 +0000
parents fdefd0186b75
children 943eaba38521
line wrap: on
line diff
--- a/src/buffer.c	Wed Dec 19 00:40:26 2001 +0000
+++ b/src/buffer.c	Thu Dec 20 05:49:48 2001 +0000
@@ -354,7 +354,7 @@
 struct buffer *
 decode_buffer (Lisp_Object buffer, int allow_string)
 {
-  if (NILP (buffer))
+  if (NILP (buffer) || (!POINTER_TYPE_P( XTYPE(buffer))))
     return current_buffer;
 
   if (allow_string && STRINGP (buffer))