From b89b4d5866ce69387dd7b1335d110282eaf9b547 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Sun, 3 Aug 2014 23:56:43 +0900 Subject: [PATCH] fileselector: renamed internal variable to reduce confusion. This fixes coverity CID 1229550. --- legacy/elementary/src/lib/elc_fileselector.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/legacy/elementary/src/lib/elc_fileselector.c b/legacy/elementary/src/lib/elc_fileselector.c index cf91b17..6fb87f2 100644 --- a/legacy/elementary/src/lib/elc_fileselector.c +++ b/legacy/elementary/src/lib/elc_fileselector.c @@ -1891,7 +1891,7 @@ EOLIAN static Eina_Bool _elm_fileselector_elm_interface_fileselector_selected_set(Eo *obj, Elm_Fileselector_Data *sd, const char *_path) { Eina_Bool ret = EINA_TRUE; - char *selected; + char *dir; char *path; path = ecore_file_realpath(_path); @@ -1905,10 +1905,10 @@ _elm_fileselector_elm_interface_fileselector_selected_set(Eo *obj, Elm_Fileselec goto clean_up; } - selected = ecore_file_dir_get(path); - _populate(obj, selected, NULL, path); + dir = ecore_file_dir_get(path); + _populate(obj, dir, NULL, path); eina_stringshare_replace(&sd->selection, path); - free(selected); + free(dir); } clean_up: -- 2.7.4