summaryrefslogtreecommitdiff
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
parentdde69f8e34e14d9aae1437535026b7e180479181 (diff)
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
154ecore_file_exists(const char *file) 154ecore_file_exists(const char *file)
155{ 155{
156 struct stat st; 156 struct stat st;
157 if (!file) return EINA_FALSE;
157 158
158 /*Workaround so that "/" returns a true, otherwise we can't monitor "/" in ecore_file_monitor*/ 159 /*Workaround so that "/" returns a true, otherwise we can't monitor "/" in ecore_file_monitor*/
159 if (stat(file, &st) < 0 && strcmp(file, "/")) return EINA_FALSE; 160 if (stat(file, &st) < 0 && strcmp(file, "/")) return EINA_FALSE;