1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

ensure that the `file' variable passed to tr_msg() is never NULL

This commit is contained in:
Charles Kerr 2007-12-08 19:42:07 +00:00
parent 73ee11f233
commit 008a403463

View file

@ -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 );