Commit a8918606 authored by Chris Michael's avatar Chris Michael

elementary: Remove logically dead code

Coverity reports that this is logically dead code. As we check the
validity of 'model' above this function, then testing 'model' for
validity again in this expression is just logically dead.

Fixes Coverity CID1356617

Signed-off-by: default avatarChris Michael <>
parent 30ab0a89
......@@ -102,7 +102,7 @@ _elm_fileselector_replace_model(Elm_Fileselector *fs, Elm_Fileselector_Data *sd,
if (model && path)
sd->model = model ? eo_ref(model) : NULL;
sd->model = eo_ref(model);
eina_stringshare_replace(&sd->path, path);
_monitoring_start(fs, sd, sd->model);
/* TODO: sub directory should be monitored for expand mode */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment