summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-07-02 07:17:23 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-07-02 07:17:23 -0400
commit183a611cde0ef889b82843a6f63583e04ba5ecc2 (patch)
tree594858867c98d7cb0e25a614df55b2dc3850ead2 /src
parentda90173936fca13d592ab0102bed1dacf421b0a2 (diff)
ecore-wl2: Fix uninitialized variable
Coverity reports that len is used un-init here, so let's give it a value at declaration time Fixes Coverity CID1357214 @fix Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_dnd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_dnd.c b/src/lib/ecore_wl2/ecore_wl2_dnd.c
index b696a2d..0beac7a 100644
--- a/src/lib/ecore_wl2/ecore_wl2_dnd.c
+++ b/src/lib/ecore_wl2/ecore_wl2_dnd.c
@@ -223,7 +223,7 @@ _selection_data_ready_cb_free(void *data EINA_UNUSED, void *event)
223static Eina_Bool 223static Eina_Bool
224_selection_data_read(void *data, Ecore_Fd_Handler *fdh) 224_selection_data_read(void *data, Ecore_Fd_Handler *fdh)
225{ 225{
226 int len, fd; 226 int len = 0, fd;
227 char buffer[PATH_MAX]; 227 char buffer[PATH_MAX];
228 Ecore_Wl2_Dnd_Source *source = data; 228 Ecore_Wl2_Dnd_Source *source = data;
229 Ecore_Wl2_Event_Selection_Data_Ready *event; 229 Ecore_Wl2_Event_Selection_Data_Ready *event;