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>
This commit is contained in:
Marek Chalupa 2014-12-10 12:07:58 +01:00 committed by Pekka Paalanen
parent ab9285bf8a
commit 389a10d705

View File

@ -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)