forked from enlightenment/efl
fix ecore_file_get_dir() to return "/" for files in the root directory
SVN revision: 28042
This commit is contained in:
parent
060ca01331
commit
b8147d36bf
|
@ -249,6 +249,9 @@ ecore_file_get_dir(const char *file)
|
|||
{
|
||||
return strdup(file);
|
||||
}
|
||||
|
||||
if (p == buf) return strdup("/");
|
||||
|
||||
*p = 0;
|
||||
return strdup(buf);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue