simplify/improve evry files dead code and maybe fix or add a bug
CID 1039879
This commit is contained in:
parent
1950f54caf
commit
8d32ad61d6
|
@ -651,25 +651,13 @@ _fetch(Evry_Plugin *plugin, const char *input)
|
||||||
|
|
||||||
IF_RELEASE(p->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)
|
if (p->command != CMD_SHOW_ROOT)
|
||||||
{
|
{
|
||||||
_free_files(p);
|
_free_files(p);
|
||||||
|
|
||||||
IF_RELEASE(p->directory);
|
eina_stringshare_replace(&p->directory, input);
|
||||||
|
|
||||||
if (path)
|
|
||||||
{
|
|
||||||
p->directory = eina_stringshare_add(path);
|
|
||||||
free(path);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
p->directory = eina_stringshare_add("/");
|
|
||||||
}
|
|
||||||
|
|
||||||
_read_directory(p);
|
_read_directory(p);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue