Changeset 12278


Ignore:
Timestamp:
Mar 31, 2011, 5:06:19 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) fix never-executed code branch detected by clang static analyzer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r12266 r12278  
    173173strlsize( char * buf, int64_t bytes, size_t buflen )
    174174{
    175     if( bytes < 1 )
     175    if( bytes < 0 )
    176176        tr_strlcpy( buf, "Unknown", buflen );
    177     else if( !bytes )
     177    else if( bytes == 0 )
    178178        tr_strlcpy( buf, "None", buflen );
    179179    else
Note: See TracChangeset for help on using the changeset viewer.