summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2019-08-27 20:25:02 +0900
committerHermet Park <hermetpark@gmail.com>2019-08-27 20:25:02 +0900
commit979757c8456b1d9b62d8cc1cf247f943de9c10d7 (patch)
treefc6e95bb4a646cccbf94abf2f6e755e2e44169db /src/lib/eina
parent4c489d5a2e4696275ced1c44baae600fe7d386ba (diff)
eina_vpath: add null checking logic on vpath_resolve api
Summary: there is a patch that add vpath_resolve() call before eina_file_open() because `path` arg could be NULL, the patch kills some applications. this patch add null checking logic on vpath_resolve api Reviewers: bu5hm4n, cedric, Hermet Reviewed By: Hermet Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9748
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_vpath.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eina/eina_vpath.c b/src/lib/eina/eina_vpath.c
index 78ae6a2..ac2d6ca 100644
--- a/src/lib/eina/eina_vpath.c
+++ b/src/lib/eina/eina_vpath.c
@@ -327,6 +327,7 @@ EAPI char *
327eina_vpath_resolve(const char* path) 327eina_vpath_resolve(const char* path)
328{ 328{
329 char buf[PATH_MAX]; 329 char buf[PATH_MAX];
330 EINA_SAFETY_ON_NULL_RETURN_VAL(path, NULL);
330 331
331 if (_eina_vpath_resolve(path, buf, sizeof(buf)) > 0) 332 if (_eina_vpath_resolve(path, buf, sizeof(buf)) > 0)
332 return strdup(buf); 333 return strdup(buf);