From 183a611cde0ef889b82843a6f63583e04ba5ecc2 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Sat, 2 Jul 2016 07:17:23 -0400 Subject: [PATCH] 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 --- src/lib/ecore_wl2/ecore_wl2_dnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) static Eina_Bool _selection_data_read(void *data, Ecore_Fd_Handler *fdh) { - int len, fd; + int len = 0, fd; char buffer[PATH_MAX]; Ecore_Wl2_Dnd_Source *source = data; Ecore_Wl2_Event_Selection_Data_Ready *event; -- 2.7.4