Merge branch 'libreoffice-3-4' of ssh://git.freedesktop.org/git/libreoffice/libs-core into libreoffice-3-4
This commit is contained in:
commit
b768aff762
1 changed files with 3 additions and 3 deletions
|
@ -216,12 +216,12 @@ get_app_path( const char *pAppExec )
|
|||
char pRealPath[PATH_MAX];
|
||||
rtl_uString *pResult;
|
||||
|
||||
char *pPath = strdup( pAppExec );
|
||||
pPath = dirname( pPath );
|
||||
char *pOrigPath = strdup( pAppExec );
|
||||
char *pPath = dirname( pOrigPath );
|
||||
|
||||
realpath( pPath, pRealPath );
|
||||
pResult = charp_to_ustr( pRealPath );
|
||||
free( pPath );
|
||||
free( pOrigPath );
|
||||
|
||||
return pResult;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue