aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ecore/src/lib/ecore_file/ecore_file.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2011-03-29 02:28:41 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2011-03-29 02:28:41 +0000
commit736e8bf67bd680108f9811f8eb6ee8acc61fd62e (patch)
tree4b0cc9384fa06eba5f6dc1fdf2e635df8c50ad54 /legacy/ecore/src/lib/ecore_file/ecore_file.c
parenteina-hash: improve documentation + indent + wibble (diff)
downloadefl-736e8bf67bd680108f9811f8eb6ee8acc61fd62e.tar.gz
Ecore ecore_file.c: NULL check before using strcmp().
SVN revision: 58168
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_file/ecore_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file.c b/legacy/ecore/src/lib/ecore_file/ecore_file.c
index cd29a3399a..906c65215a 100644
--- a/legacy/ecore/src/lib/ecore_file/ecore_file.c
+++ b/legacy/ecore/src/lib/ecore_file/ecore_file.c
@@ -154,6 +154,7 @@ EAPI Eina_Bool
ecore_file_exists(const char *file)
{
struct stat st;
+ if (!file) return EINA_FALSE;
/*Workaround so that "/" returns a true, otherwise we can't monitor "/" in ecore_file_monitor*/
if (stat(file, &st) < 0 && strcmp(file, "/")) return EINA_FALSE;