mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
eliminate setting an unnecessary null character
This commit is contained in:
@@ -785,8 +785,6 @@ tr_strstrip( char * str )
|
||||
while( len && isspace( str[len - 1] ) )
|
||||
--len;
|
||||
|
||||
str[len] = '\0';
|
||||
|
||||
for( pos = 0; pos < len && isspace( str[pos] ); )
|
||||
++pos;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user