mirror of
https://github.com/transmission/transmission.git
synced 2025-12-26 05:08:32 +00:00
(trunk) #3663 "clang warnings in 2.11" -- fixed.
This commit is contained in:
@@ -430,9 +430,9 @@ tr_strip_positional_args( const char* str )
|
||||
const size_t len = strlen( str );
|
||||
char * out;
|
||||
|
||||
if( bufsize < len )
|
||||
if( !buf || ( bufsize < len ) )
|
||||
{
|
||||
bufsize = len * 2;
|
||||
bufsize = len * 2 + 1;
|
||||
buf = tr_renew( char, buf, bufsize );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user