[PATCH weston v2] clipboard: set fd member of clipboard_source

Marek Chalupa mchqwerty at gmail.com
Wed Dec 10 03:07:58 PST 2014


The fd member of clipboard_source structure was not set
but was used in close().

v2. don't do unnecessary changes

Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
---
 src/clipboard.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/clipboard.c b/src/clipboard.c
index dbd8c9b..c1091a9 100644
--- a/src/clipboard.c
+++ b/src/clipboard.c
@@ -151,6 +151,7 @@ clipboard_source_create(struct clipboard *clipboard,
 	source->refcount = 1;
 	source->clipboard = clipboard;
 	source->serial = serial;
+	source->fd = fd;
 
 	s = wl_array_add(&source->base.mime_types, sizeof *s);
 	if (s == NULL)
-- 
2.1.0



More information about the wayland-devel mailing list