From fc7069e1a6bb7f75b63eec699dd5cfb401b4f3b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 22 Nov 2019 21:52:59 +0100 Subject: [PATCH] selection: text_to_clipboard: assert the clipboard serial is not 0 --- selection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/selection.c b/selection.c index 66d848c6..8ed0b6da 100644 --- a/selection.c +++ b/selection.c @@ -557,6 +557,7 @@ text_to_clipboard(struct terminal *term, char *text, uint32_t serial) wl_data_device_set_selection(term->wl->data_device, clipboard->data_source, serial); /* Needed when sending the selection to other client */ + assert(serial != 0); clipboard->serial = serial; return true; }