mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +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] ) )
|
while( len && isspace( str[len - 1] ) )
|
||||||
--len;
|
--len;
|
||||||
|
|
||||||
str[len] = '\0';
|
|
||||||
|
|
||||||
for( pos = 0; pos < len && isspace( str[pos] ); )
|
for( pos = 0; pos < len && isspace( str[pos] ); )
|
||||||
++pos;
|
++pos;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue