fix ecore_file_get_dir() to return "/" for files in the root directory

SVN revision: 28042
This commit is contained in:
rephorm 2007-01-18 07:28:56 +00:00 committed by rephorm
parent 060ca01331
commit b8147d36bf
1 changed files with 3 additions and 0 deletions

View File

@ -249,6 +249,9 @@ ecore_file_get_dir(const char *file)
{
return strdup(file);
}
if (p == buf) return strdup("/");
*p = 0;
return strdup(buf);
}