changeset 21654:8f2af8f84898

(Fx_get_cut_buffer_internal): If FORMAT is 0, cut buffer is empty.
author Richard M. Stallman <rms@gnu.org>
date Sat, 18 Apr 1998 22:14:32 +0000
parents e95a88dc6110
children cfb05eddeb55
files src/xselect.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xselect.c	Sat Apr 18 20:43:38 1998 +0000
+++ b/src/xselect.c	Sat Apr 18 22:14:32 1998 +0000
@@ -2094,7 +2094,8 @@
 
   x_get_window_property (display, window, buffer_atom, &data, &bytes,
 			 &type, &format, &size, 0);
-  if (!data) return Qnil;
+  if (!data || !format)
+    return Qnil;
   
   if (format != 8 || type != XA_STRING)
     Fsignal (Qerror,