diff options
author | Tim Angus <tim@ngus.net> | 2012-07-07 18:24:20 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-12 20:46:31 +0000 |
commit | c2b93d4d1c0a702c5f486d1448e95dae6256aab8 (patch) | |
tree | dc33832aa8fc8930443618fd0c10839d312a397a /src/sys | |
parent | b6b7af271845781da0673f6973b73b55aee0dccf (diff) |
* Fix warning
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/sys_main.c | 4 |
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; } |