aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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,
2094 2094
2095 x_get_window_property (display, window, buffer_atom, &data, &bytes, 2095 x_get_window_property (display, window, buffer_atom, &data, &bytes,
2096 &type, &format, &size, 0); 2096 &type, &format, &size, 0);
2097 if (!data) return Qnil; 2097 if (!data || !format)
2098 return Qnil;
2098 2099
2099 if (format != 8 || type != XA_STRING) 2100 if (format != 8 || type != XA_STRING)
2100 Fsignal (Qerror, 2101 Fsignal (Qerror,