mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
eliminate setting an unnecessary null character
This commit is contained in:
parent
e8de04bea8
commit
48227fdfe1
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue