selection: text_to_clipboard: assert the clipboard serial is not 0

This commit is contained in:
Daniel Eklöf 2019-11-22 21:52:59 +01:00
parent f9e7ae8a89
commit fc7069e1a6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;
}