summaryrefslogtreecommitdiffstats
path: root/cppuhelper/source/findsofficepath.c
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper/source/findsofficepath.c')
-rw-r--r--cppuhelper/source/findsofficepath.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cppuhelper/source/findsofficepath.c b/cppuhelper/source/findsofficepath.c
index 37c8bdfc5e07..b199e4e84aa2 100644
--- a/cppuhelper/source/findsofficepath.c
+++ b/cppuhelper/source/findsofficepath.c
@@ -124,8 +124,6 @@ static char* platformSpecific(void)
char* env = NULL;
char* str = NULL;
char* dir = NULL;
- char* file = NULL;
- char* resolved = NULL;
char* sep = NULL;
char buffer[PATH_MAX];
@@ -146,7 +144,8 @@ static char* platformSpecific(void)
while ( dir )
{
/* construct soffice file path */
- file = (char*) malloc( strlen( dir ) + strlen( APPENDIX ) + 1 );
+ char* resolved = NULL;
+ char* file = (char*) malloc( strlen( dir ) + strlen( APPENDIX ) + 1 );
if (file == NULL)
{
free(str);