projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da90173
)
ecore-wl2: Fix uninitialized variable
author
Chris Michael
<cpmichael@osg.samsung.com>
Sat, 2 Jul 2016 11:17:23 +0000
(07:17 -0400)
committer
Chris Michael
<cpmichael@osg.samsung.com>
Sat, 2 Jul 2016 11:17:23 +0000
(07:17 -0400)
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>
src/lib/ecore_wl2/ecore_wl2_dnd.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore_wl2/ecore_wl2_dnd.c
b/src/lib/ecore_wl2/ecore_wl2_dnd.c
index
b696a2d
..
0beac7a
100644
(file)
--- 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;