]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
fix error
authorRudolf Polzer <divverent@xonotic.org>
Sun, 15 May 2011 20:24:57 +0000 (22:24 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 15 May 2011 20:24:57 +0000 (22:24 +0200)
tools/quake3/q3map2/path_init.c

index e3250aeea19d03f4c15000b3082e144b9823a56e..3a12b49bcd3ac4599b98365a4c8ba4429d3f3b0e 100644 (file)
@@ -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;