Mercurial > emacs
diff src/xselect.c @ 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 | fa9ff387d260 |
children | a3a1164f9ad9 |
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,