simplify/improve evry files dead code and maybe fix or add a bug

CID 1039879
This commit is contained in:
Mike Blumenkrantz 2014-04-04 14:32:01 -04:00
parent 1950f54caf
commit 8d32ad61d6
1 changed files with 2 additions and 14 deletions

View File

@ -651,25 +651,13 @@ _fetch(Evry_Plugin *plugin, const char *input)
IF_RELEASE(p->input);
if (!p->parent && input && !strncmp(input, "/", 1))
if (!p->parent && input && (input[0] == '/'))
{
char *path = NULL;
if (p->command != CMD_SHOW_ROOT)
{
_free_files(p);
IF_RELEASE(p->directory);
if (path)
{
p->directory = eina_stringshare_add(path);
free(path);
}
else
{
p->directory = eina_stringshare_add("/");
}
eina_stringshare_replace(&p->directory, input);
_read_directory(p);