aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ecore/src/lib/ecore_file/ecore_file.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2010-01-20 12:41:22 +0000
committerCedric BAIL <cedric.bail@free.fr>2010-01-20 12:41:22 +0000
commitc354216b27c317907f686f785762291845ea25d2 (patch)
tree4bd752599dbc575d96180c2ff56b96a8b22ea9ef /legacy/ecore/src/lib/ecore_file/ecore_file.c
parenthandle images that have alpha vhannel but are arbage (in gl) eg 0 or (diff)
downloadefl-c354216b27c317907f686f785762291845ea25d2.tar.gz
* ecore: Handle NULL in ecore_file_dir_get.
SVN revision: 45352
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 1bfcaee111..2dcff23b68 100644
--- a/legacy/ecore/src/lib/ecore_file/ecore_file.c
+++ b/legacy/ecore/src/lib/ecore_file/ecore_file.c
@@ -600,6 +600,7 @@ ecore_file_dir_get(const char *file)
char *p;
char buf[PATH_MAX];
+ if (!file) return NULL;
strncpy(buf, file, PATH_MAX);
p = dirname(buf);
return strdup(p);