From d8518d0278d20c66404c40f3d68b0b6528fa2151 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 15 May 2011 22:24:57 +0200 Subject: [PATCH] fix error --- tools/quake3/q3map2/path_init.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/quake3/q3map2/path_init.c b/tools/quake3/q3map2/path_init.c index e3250aee..3a12b49b 100644 --- a/tools/quake3/q3map2/path_init.c +++ b/tools/quake3/q3map2/path_init.c @@ -110,6 +110,8 @@ void LokiInitPaths( char *argv0 ) { if(!homePath) { + char *home; + /* get home dir */ home = LokiGetHomeDir(); if( home == NULL ) @@ -120,14 +122,11 @@ void LokiInitPaths( char *argv0 ) } #ifndef Q_UNIX - char *home; - /* this is kinda crap, but hey */ strcpy( installPath, "../" ); #else char temp[ MAX_OS_PATH ]; char last0[ 2 ]; - char *home; char *path; char *last; qboolean found; -- 2.39.2