1
0
Fork 0
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:
Mitchell Livingston 2009-11-09 05:08:59 +00:00
parent e8de04bea8
commit 48227fdfe1

View file

@ -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;