realpath will return empty string when not found

SVN revision: 54615
This commit is contained in:
Sebastian Dransfeld 2010-11-16 21:50:38 +00:00
parent 2894e4aedc
commit 159b8ddb60
1 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ efreet_dirs_get(const char *key, const char *fallback)
// resolve path properly/fully to remove path//path2 to
// path/path2, path/./path2 to path/path2 etc.
char *ts = ecore_file_realpath(s);
if (ts)
if (ts && ts[0])
{
dirs = eina_list_append(dirs, (void *)eina_stringshare_add(ts));
free(ts);
@ -268,7 +268,7 @@ efreet_dirs_get(const char *key, const char *fallback)
// resolve path properly/fully to remove path//path2 to
// path/path2, path/./path2 to path/path2 etc.
char *ts = ecore_file_realpath(s);
if (ts)
if (ts && ts[0])
{
dirs = eina_list_append(dirs, (void *)eina_stringshare_add(ts));
free(ts);