mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
ensure that the `file' variable passed to tr_msg() is never NULL
This commit is contained in:
parent
73ee11f233
commit
008a403463
1 changed files with 3 additions and 0 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue