mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
ensure that the `file' variable passed to tr_msg() is never NULL
This commit is contained in:
@@ -192,6 +192,9 @@ tr_msg( const char * file, int line, int level, const char * fmt, ... )
|
||||
{
|
||||
FILE * fp;
|
||||
|
||||
if( file == NULL )
|
||||
file = "";
|
||||
|
||||
assert( NULL != messageLock );
|
||||
tr_lockLock( messageLock );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user