summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Chalupa <mchqwerty@gmail.com>2014-12-10 12:07:58 +0100
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-12-12 15:01:17 +0200
commit389a10d705bd9999a925061c10efd06bbecc8c80 (patch)
tree1823aba0e40e3911fae0f22aead0c196082bad69
parentab9285bf8a7a866daa7b4efc9f27181ea4fdc719 (diff)
downloadweston-389a10d705bd9999a925061c10efd06bbecc8c80.tar.gz
weston-389a10d705bd9999a925061c10efd06bbecc8c80.tar.bz2
weston-389a10d705bd9999a925061c10efd06bbecc8c80.zip
clipboard: set fd member of clipboard_source
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@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-rw-r--r--src/clipboard.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/clipboard.c b/src/clipboard.c
index dbd8c9bf..c1091a9c 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)