ecore/ecore_file: NULL-check for input parameter
authorOleksandr Shcherbina <o.shcherbina@samsung.com>
Fri, 29 Nov 2013 13:17:18 +0000 (22:17 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Sat, 30 Nov 2013 04:50:17 +0000 (13:50 +0900)
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

index 6876511..7a42cb2 100644 (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;