fix error

This commit is contained in:
Rudolf Polzer 2011-05-15 22:24:57 +02:00
parent 2ceb6c1c5a
commit d8518d0278

View File

@ -110,6 +110,8 @@ void LokiInitPaths( char *argv0 )
{ {
if(!homePath) if(!homePath)
{ {
char *home;
/* get home dir */ /* get home dir */
home = LokiGetHomeDir(); home = LokiGetHomeDir();
if( home == NULL ) if( home == NULL )
@ -120,14 +122,11 @@ void LokiInitPaths( char *argv0 )
} }
#ifndef Q_UNIX #ifndef Q_UNIX
char *home;
/* this is kinda crap, but hey */ /* this is kinda crap, but hey */
strcpy( installPath, "../" ); strcpy( installPath, "../" );
#else #else
char temp[ MAX_OS_PATH ]; char temp[ MAX_OS_PATH ];
char last0[ 2 ]; char last0[ 2 ];
char *home;
char *path; char *path;
char *last; char *last;
qboolean found; qboolean found;