From: Richard M. Stallman Date: Sat, 18 Apr 1998 22:14:32 +0000 (+0000) Subject: (Fx_get_cut_buffer_internal): If FORMAT is 0, cut buffer is empty. X-Git-Tag: emacs-20.3~1421 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=22e00739084d74140df2ee5eb97c4bdf51e9e08a;p=emacs.git (Fx_get_cut_buffer_internal): If FORMAT is 0, cut buffer is empty. --- 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,