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
This commit is contained in:
Oleksandr Shcherbina 2013-11-29 22:17:18 +09:00 committed by Daniel Juyung Seo
parent 3ebebbca1a
commit 1cad4c2afe
1 changed files with 2 additions and 0 deletions

View File

@ -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;