forked from enlightenment/ephoto
Ephoto: Fix coverity issues: CIDS 151514 151512
This commit is contained in:
parent
621fb3be0b
commit
38c246b000
|
@ -1159,12 +1159,9 @@ ephoto_directory_browser_initialize_structure(Ephoto *ephoto)
|
|||
dirs = eina_list_prepend(dirs, strdup(path));
|
||||
dir = strdup(path);
|
||||
while (strcmp(dir, ephoto->config->open))
|
||||
{
|
||||
if (dir)
|
||||
{
|
||||
free(dir);
|
||||
dir = NULL;
|
||||
}
|
||||
dir = ecore_file_dir_get(path);
|
||||
dirs = eina_list_prepend(dirs, strdup(dir));
|
||||
memset(path, 0x00, sizeof(path));
|
||||
|
|
Loading…
Reference in New Issue