From e9f6a91ff83cf04f8ffa2a0ff2863775571fbe42 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Tue, 8 Oct 2013 00:03:05 +0900 Subject: [PATCH] elm_cnp.c: removed unused pointer value and initialized some local variables. This fixes coverity CID 1102548, 1102553, and 1102554. --- legacy/elementary/src/lib/elm_cnp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/legacy/elementary/src/lib/elm_cnp.c b/legacy/elementary/src/lib/elm_cnp.c index f6b3599..97696a4 100644 --- a/legacy/elementary/src/lib/elm_cnp.c +++ b/legacy/elementary/src/lib/elm_cnp.c @@ -2370,7 +2370,7 @@ _wl_elm_drag_start(Evas_Object *obj, Elm_Sel_Format format EINA_UNUSED, const ch { Ecore_Evas *ee; Evas_Object *icon = NULL; - int x, y, x2 = 0, y2 = 0, x3, y3, w, h; + int x, y, x2 = 0, y2 = 0, x3, y3, w = 0, h = 0; const char *types[1] = { 0, }; _wl_elm_dnd_init(); @@ -2465,12 +2465,11 @@ static Eina_Bool _wl_dnd_enter(void *data EINA_UNUSED, int type EINA_UNUSED, void *event) { Ecore_Wl_Event_Dnd_Enter *ev; - Dropable *drop; int i = 0; ev = event; - if ((drop = _wl_dropable_find(ev->win))) + if (_wl_dropable_find(ev->win)) _wl_dropable_all_set(ev->win, 0, 0, EINA_FALSE); if ((!ev->num_types) || (!ev->types)) return ECORE_CALLBACK_PASS_ON; -- 2.7.4