summaryrefslogtreecommitdiff
path: root/src/lib/evas/vg
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-07-11 16:08:48 +0900
committerHermet Park <hermetpark@gmail.com>2018-07-11 16:08:49 +0900
commitb29209ac4b0ce65179866b86f033f7ee0ef780d3 (patch)
tree6dd778f0df0eabeab4fe1233a2111199a3009c72 /src/lib/evas/vg
parent8cd3860d001d95a26ba016c01738abb3f015df49 (diff)
canvas vg: check expcetional case.
Summary: if file is not exists. Reviewers: devilhorns, #committers, zmike Reviewed By: #committers, zmike Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6546
Diffstat (limited to 'src/lib/evas/vg')
-rw-r--r--src/lib/evas/vg/evas_vg_cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/evas/vg/evas_vg_cache.c b/src/lib/evas/vg/evas_vg_cache.c
index dc2272c6c4..f628a781d1 100644
--- a/src/lib/evas/vg/evas_vg_cache.c
+++ b/src/lib/evas/vg/evas_vg_cache.c
@@ -231,7 +231,8 @@ evas_cache_vg_file_info(const char *file, const char *key)
231 if (!vd) 231 if (!vd)
232 { 232 {
233 vd = _vg_load_from_file(file, key); 233 vd = _vg_load_from_file(file, key);
234 eina_hash_add(vg_cache->vg_hash, eina_strbuf_string_get(hash_key), vd); 234 //File is exists.
235 if (vd) eina_hash_add(vg_cache->vg_hash, eina_strbuf_string_get(hash_key), vd);
235 } 236 }
236 eina_strbuf_free(hash_key); 237 eina_strbuf_free(hash_key);
237 return vd; 238 return vd;