summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file
diff options
context:
space:
mode:
authorOleksandr Shcherbina <o.shcherbina@samsung.com>2013-11-29 22:17:18 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-11-30 13:50:17 +0900
commit1cad4c2afecd274d9fc5d913ba1137f2bee55230 (patch)
tree056556f61887aa86afdebcdb91dff74f393bc9ab /src/lib/ecore_file
parent3ebebbca1a2cdf2f1d15cca901aa5972f07e7d7f (diff)
ecore/ecore_file: NULL-check for input parameter
Add check by NULL for input parameter 'path' in method ecore_file_mkpath Reviewers: seoz, Hermet CC: cedric Differential Revision: https://phab.enlightenment.org/D349
Diffstat (limited to 'src/lib/ecore_file')
-rw-r--r--src/lib/ecore_file/ecore_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_file/ecore_file.c b/src/lib/ecore_file/ecore_file.c
index 6876511fc6..7a42cb2391 100644
--- a/src/lib/ecore_file/ecore_file.c
+++ b/src/lib/ecore_file/ecore_file.c
@@ -479,6 +479,8 @@ ecore_file_mkpath(const char *path)
479 char ss[PATH_MAX]; 479 char ss[PATH_MAX];
480 unsigned int i; 480 unsigned int i;
481 481
482 EINA_SAFETY_ON_NULL_RETURN_VAL(path, EINA_FALSE);
483
482 if (ecore_file_is_dir(path)) 484 if (ecore_file_is_dir(path))
483 return EINA_TRUE; 485 return EINA_TRUE;
484 486