summaryrefslogtreecommitdiff
path: root/desktop/unx/source
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/unx/source')
-rwxr-xr-xdesktop/unx/source/start.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/unx/source/start.c b/desktop/unx/source/start.c
index 19420a9adf..b0f5ab393a 100755
--- a/desktop/unx/source/start.c
+++ b/desktop/unx/source/start.c
@@ -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;
}