discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=426382bc8bf94f322a8cf89bf371666ba268cd40

commit 426382bc8bf94f322a8cf89bf371666ba268cd40
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Mar 13 14:52:58 2015 -0400

    ecore-wl dnd target interface should accept a NULL mime_type
    
    according to protocol, this indicates that the target does not support the 
drop type
---
 src/lib/ecore_wayland/ecore_wl_dnd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_wayland/ecore_wl_dnd.c 
b/src/lib/ecore_wayland/ecore_wl_dnd.c
index 11b889a..b48cc13 100644
--- a/src/lib/ecore_wayland/ecore_wl_dnd.c
+++ b/src/lib/ecore_wayland/ecore_wl_dnd.c
@@ -737,7 +737,8 @@ _ecore_wl_dnd_source_cb_target(void *data, struct 
wl_data_source *source EINA_UN
 
    if (!(event = calloc(1, sizeof(Ecore_Wl_Event_Data_Source_Target)))) return;
 
-   event->type = strdup(mime_type);
+   if (mime_type)
+     event->type = strdup(mime_type);
 
    ecore_event_add(ECORE_WL_EVENT_DATA_SOURCE_TARGET, event,
                    _ecore_wl_dnd_source_cb_target_free, NULL);

-- 


Reply via email to