seoz pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=1cad4c2afecd274d9fc5d913ba1137f2bee55230
commit 1cad4c2afecd274d9fc5d913ba1137f2bee55230 Author: Oleksandr Shcherbina <[email protected]> Date: Fri Nov 29 22:17:18 2013 +0900 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 --- src/lib/ecore_file/ecore_file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/ecore_file/ecore_file.c b/src/lib/ecore_file/ecore_file.c index 6876511..7a42cb2 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) char ss[PATH_MAX]; unsigned int i; + EINA_SAFETY_ON_NULL_RETURN_VAL(path, EINA_FALSE); + if (ecore_file_is_dir(path)) return EINA_TRUE; --
