summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-26 17:29:09 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-04-28 11:46:44 +0200
commit3614c4190d78ed3abce4b3e1e175342e6299a242 (patch)
treefeaa4f126dfd282088f614dcfd32a9c6614f7ee5 /src/lib/elementary
parent1aed1cef5986d1c6b4bd61c454ed6da41c3ea95b (diff)
efl_fileselector_entry: do not crash on a invalid model
something is happening during shutdown, when a fileselector was created before. This is ending up in a strcmp to a NULL ptr, which crashes, with the now, we ensure that we are not crashing anymore, when that is happning. TO solve this properly we should really fix the cause of a invalid model beeing returned, however, i do not feel compftable doing that so short before a release. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11762
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/elc_fileselector_entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elc_fileselector_entry.c b/src/lib/elementary/elc_fileselector_entry.c
index 632f17385b..ff37e5b1d0 100644
--- a/src/lib/elementary/elc_fileselector_entry.c
+++ b/src/lib/elementary/elc_fileselector_entry.c
@@ -444,7 +444,7 @@ _elm_fileselector_entry_efl_ui_view_model_get(const Eo *obj, Elm_Fileselector_En
444 free(sd->path); 444 free(sd->path);
445 sd->path = elm_entry_markup_to_utf8(elm_object_text_get(sd->entry)); 445 sd->path = elm_entry_markup_to_utf8(elm_object_text_get(sd->entry));
446 446
447 if (!strcmp(sd->path, efl_io_model_path_get(bmodel))) 447 if (eina_streq(sd->path, efl_io_model_path_get(bmodel)))
448 return bmodel; 448 return bmodel;
449 449
450 ret = efl_add_ref(efl_class_get(bmodel), (Eo*) obj, 450 ret = efl_add_ref(efl_class_get(bmodel), (Eo*) obj,