summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland/ecore_wl_dnd.c
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2015-03-17 19:52:43 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-03-17 19:52:43 -0400
commitc0bc1be83e55de2b0ed0dc1ad24a8e43461cad5f (patch)
treeeadc26ad527d28b32657fc4d602f3fa5e31e5363 /src/lib/ecore_wayland/ecore_wl_dnd.c
parent931ac66be1ccadc58194b2b4cf1e4d51851b0b12 (diff)
ecore-wayland: Doublecheck input validity
Summary: Most of the other ecore-wayland API will return NULL in the (hopefully theoretical) case of bad inputs; this API routine should so similarly for consistency. Reviewers: zmike, cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2181
Diffstat (limited to 'src/lib/ecore_wayland/ecore_wl_dnd.c')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_dnd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_dnd.c b/src/lib/ecore_wayland/ecore_wl_dnd.c
index 4fd7b05166..51653283a0 100644
--- a/src/lib/ecore_wayland/ecore_wl_dnd.c
+++ b/src/lib/ecore_wayland/ecore_wl_dnd.c
@@ -398,6 +398,7 @@ ecore_wl_dnd_drag_types_get(Ecore_Wl_Input *input)
398 398
399 /* check for valid input. if not, get the default one */ 399 /* check for valid input. if not, get the default one */
400 if (!input) input = _ecore_wl_disp->input; 400 if (!input) input = _ecore_wl_disp->input;
401 if (!input) return NULL;
401 402
402 return &input->data_types; 403 return &input->data_types;
403} 404}