]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fx_get_cut_buffer_internal): If FORMAT is 0, cut buffer is empty.
authorRichard M. Stallman <rms@gnu.org>
Sat, 18 Apr 1998 22:14:32 +0000 (22:14 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 18 Apr 1998 22:14:32 +0000 (22:14 +0000)
src/xselect.c

index bf4fcb6d992a1bd9b60a5abbc09f470404a97bc5..15a4c283b8bb7c30d4c4fb2718e92d935311f3bc 100644 (file)
@@ -2094,7 +2094,8 @@ DEFUN ("x-get-cut-buffer-internal", Fx_get_cut_buffer_internal,
 
   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,