summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sys/sys_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/sys_main.c b/src/sys/sys_main.c
index bfec88eb..cb35305c 100644
--- a/src/sys/sys_main.c
+++ b/src/sys/sys_main.c
@@ -143,8 +143,8 @@ static char *Sys_PIDFileName( void )
{
const char *homePath = Sys_DefaultHomePath( );
- if( *homePath != NULL )
- return va( "%s/%s", Sys_DefaultHomePath( ), PID_FILENAME );
+ if( *homePath != '\0' )
+ return va( "%s/%s", homePath, PID_FILENAME );
return NULL;
}