forked from enlightenment/ephoto
Ephoto: Check that a path exists before running file_file_get on it.
This commit is contained in:
parent
9474ceaa00
commit
1265151a83
|
@ -1598,8 +1598,11 @@ _ephoto_single_browser_recalc(Ephoto_Single_Browser *sb)
|
||||||
}
|
}
|
||||||
if (sb->entry)
|
if (sb->entry)
|
||||||
{
|
{
|
||||||
const char *bname = ecore_file_file_get(sb->entry->path);
|
const char *bname = NULL;
|
||||||
|
|
||||||
|
if (ecore_file_exists(sb->entry->path))
|
||||||
|
bname = ecore_file_file_get(sb->entry->path);
|
||||||
|
if (bname)
|
||||||
sb->viewer = _viewer_add(sb->main, sb->entry->path, sb);
|
sb->viewer = _viewer_add(sb->main, sb->entry->path, sb);
|
||||||
if (sb->viewer)
|
if (sb->viewer)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue