From 22e00739084d74140df2ee5eb97c4bdf51e9e08a Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 18 Apr 1998 22:14:32 +0000 Subject: [PATCH] (Fx_get_cut_buffer_internal): If FORMAT is 0, cut buffer is empty. --- src/xselect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.2