forked from enlightenment/efl
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:
parent
3ebebbca1a
commit
1cad4c2afe
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue