summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2012-07-07 18:24:20 +0000
committerTim Angus <tim@ngus.net>2013-01-12 20:46:31 +0000
commitc2b93d4d1c0a702c5f486d1448e95dae6256aab8 (patch)
treedc33832aa8fc8930443618fd0c10839d312a397a /src
parentb6b7af271845781da0673f6973b73b55aee0dccf (diff)
* Fix warning
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;
}