Shut up compiler error

This commit is contained in:
Thilo Schulz 2011-01-21 20:47:32 +00:00
parent 35c1e98934
commit 7471510c8e

View file

@ -162,13 +162,18 @@ qboolean Sys_WritePIDFile( void )
char pidBuffer[ 64 ] = { 0 };
int pid;
fread( pidBuffer, sizeof( char ), sizeof( pidBuffer ) - 1, f );
pid = fread( pidBuffer, sizeof( char ), sizeof( pidBuffer ) - 1, f );
fclose( f );
if(pid > 0)
{
pid = atoi( pidBuffer );
if( !Sys_PIDIsRunning( pid ) )
stale = qtrue;
}
else
stale = qtrue;
}
if( ( f = fopen( pidFile, "w" ) ) != NULL )
{