summaryrefslogtreecommitdiff
path: root/src/xselect.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-04-18 22:14:32 +0000
committerRichard M. Stallman <rms@gnu.org>1998-04-18 22:14:32 +0000
commit22e00739084d74140df2ee5eb97c4bdf51e9e08a (patch)
tree0ba048d0687828b996f525b0a42c81e60791a0f3 /src/xselect.c
parentdaa02ea5db4c8e5518fec72473b643910077de1e (diff)
downloademacs-22e00739084d74140df2ee5eb97c4bdf51e9e08a.tar.gz
(Fx_get_cut_buffer_internal): If FORMAT is 0, cut buffer is empty.
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xselect.c b/src/xselect.c
index bf4fcb6d992..15a4c283b8b 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -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,