mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(trunk libT) fix never-executed code branch detected by clang static analyzer
This commit is contained in:
@@ -172,9 +172,9 @@ strlmem( char * buf, int64_t bytes, size_t buflen )
|
||||
static char*
|
||||
strlsize( char * buf, int64_t bytes, size_t buflen )
|
||||
{
|
||||
if( bytes < 1 )
|
||||
if( bytes < 0 )
|
||||
tr_strlcpy( buf, "Unknown", buflen );
|
||||
else if( !bytes )
|
||||
else if( bytes == 0 )
|
||||
tr_strlcpy( buf, "None", buflen );
|
||||
else
|
||||
tr_formatter_size_B( buf, bytes, buflen );
|
||||
|
||||
Reference in New Issue
Block a user