From 88cbeae0fd0278017c8e6940afdbe95a56521c21 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 7 Jul 2012 18:24:20 +0000 Subject: [PATCH] * Fix warning --- code/sys/sys_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sys/sys_main.c b/code/sys/sys_main.c index 70c9933f..40e8a9f6 100644 --- a/code/sys/sys_main.c +++ b/code/sys/sys_main.c @@ -142,8 +142,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; }