summaryrefslogtreecommitdiff
path: root/src/data-device.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-09-11 09:45:03 -0700
committerKristian Høgsberg <krh@bitplanet.net>2013-09-11 09:45:03 -0700
commit1702d4cfca9668bbfab9ff1f6be27f904fa3e436 (patch)
tree6253e47061d0844214b15575676c9adf35a623c1 /src/data-device.c
parent0abad0775089deecec8422e66af7bb6aada1eb2a (diff)
downloadweston-1702d4cfca9668bbfab9ff1f6be27f904fa3e436.tar.gz
input: Initialize data source to NULL
This way we do the right thing, when we get a NULL wl_resource for self-dnd.
Diffstat (limited to 'src/data-device.c')
-rw-r--r--src/data-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data-device.c b/src/data-device.c
index 44ec989f..26fb97f4 100644
--- a/src/data-device.c
+++ b/src/data-device.c
@@ -404,7 +404,7 @@ data_device_start_drag(struct wl_client *client, struct wl_resource *resource,
struct wl_resource *icon_resource, uint32_t serial)
{
struct weston_seat *seat = wl_resource_get_user_data(resource);
- struct weston_data_source *source;
+ struct weston_data_source *source = NULL;
struct weston_surface *icon = NULL;
if (seat->pointer->button_count == 0 ||