parent
fe7cfb1e16
commit
fa4e9c4f18
|
@ -210,9 +210,7 @@ _edje_cache_file_coll_open(const char *file, const char *coll, int *error_ret, E
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
if (stat(file, &st) != 0)
|
if (stat(file, &st) != 0)
|
||||||
{
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
|
|
||||||
if (!_edje_file_hash)
|
if (!_edje_file_hash)
|
||||||
{
|
{
|
||||||
|
@ -251,17 +249,20 @@ _edje_cache_file_coll_open(const char *file, const char *coll, int *error_ret, E
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
open_new:
|
open_new:
|
||||||
if (!_edje_file_hash)
|
if (!_edje_file_hash)
|
||||||
_edje_file_hash = eina_hash_string_small_new(NULL);
|
_edje_file_hash = eina_hash_string_small_new(NULL);
|
||||||
|
|
||||||
edf = _edje_file_open(file, coll, error_ret, edc_ret);
|
edf = _edje_file_open(file, coll, error_ret, edc_ret);
|
||||||
if (!edf) return NULL;
|
if (!edf)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
eina_hash_add(_edje_file_hash, file, edf);
|
eina_hash_add(_edje_file_hash, file, edf);
|
||||||
return edf;
|
return edf;
|
||||||
|
|
||||||
open:
|
open:
|
||||||
|
if (!coll)
|
||||||
if (!coll) return edf;
|
return edf;
|
||||||
|
|
||||||
edc = _edje_file_coll_open(edf, coll);
|
edc = _edje_file_coll_open(edf, coll);
|
||||||
if (!edc)
|
if (!edc)
|
||||||
|
|
Loading…
Reference in New Issue