Correct handling for HOME=""

SVN revision: 17077
This commit is contained in:
sebastid 2005-09-30 00:55:27 +00:00 committed by sebastid
parent 6839e85061
commit 3d6e558b87
1 changed files with 3 additions and 1 deletions

View File

@ -320,10 +320,11 @@ ecore_file_app_exe_get(const char *app)
len = strlen(homedir);
exe = malloc(len + exe2 - exe1 + 2);
if (!exe) return NULL;
pp = exe;
if (len)
{
strcpy(exe, homedir);
pp = exe + len;
pp += len;
if (*(pp - 1) != '/')
{
*pp = '/';
@ -396,5 +397,6 @@ ecore_file_app_exe_get(const char *app)
p++;
}
*pp = 0;
printf("%s\n", exe);
return exe;
}