remove a redundant level check in tr_msg()

This commit is contained in:
Mitchell Livingston
2009-12-05 01:02:37 +00:00
parent 162c2f0f64
commit 8efe3f7cce
+2 -5
View File
@@ -298,13 +298,11 @@ tr_msg( const char * file, int line,
const char * fmt, ... )
{
const int err = errno; /* message logging shouldn't affect errno */
tr_lockLock( messageLock );
if( messageLevel >= level )
{
char buf[MAX_STACK_ARRAY_SIZE];
va_list ap;
tr_lockLock( messageLock );
/* build the text message */
*buf = '\0';
va_start( ap, fmt );
@@ -360,7 +358,6 @@ tr_msg( const char * file, int line,
fflush( fp );
}
}
}
tr_lockUnlock( messageLock );
errno = err;