remove an unneeded static variable

This commit is contained in:
Mitchell Livingston 2009-11-27 18:13:36 +00:00
parent 8214c797c6
commit 2021706c6e
1 changed files with 4 additions and 10 deletions

View File

@ -76,18 +76,12 @@ tr_timeUpdate( time_t now )
void
tr_msgInit( void )
{
static tr_bool initialized = FALSE;
if( !initialized )
{
char * env = getenv( "TR_DEBUG" );
messageLevel = ( env ? atoi( env ) : 0 ) + 1;
messageLevel = MAX( 1, messageLevel );
const char * env = getenv( "TR_DEBUG" );
messageLevel = ( env ? atoi( env ) : 0 ) + 1;
messageLevel = MAX( 1, messageLevel );
if( messageLock == NULL )
messageLock = tr_lockNew( );
initialized = TRUE;
}
}
FILE*