Skip to content

Commit

Permalink
#i112871# missing parentheses around || within &&
Browse files Browse the repository at this point in the history
  • Loading branch information
Caolán McNamara committed Oct 1, 2010
1 parent 65abfe8 commit a4f3959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crashrep/source/unx/main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ static string trim_string( const string& rString )
{
string temp = rString;

while ( temp.length() && temp[0] == ' ' || temp[0] == '\t' )
while ( temp.length() && (temp[0] == ' ' || temp[0] == '\t') )
temp.erase( 0, 1 );

string::size_type len = temp.length();

while ( len && temp[len-1] == ' ' || temp[len-1] == '\t' )
while ( len && (temp[len-1] == ' ' || temp[len-1] == '\t') )
{
temp.erase( len - 1, 1 );
len = temp.length();
Expand Down

0 comments on commit a4f3959

Please sign in to comment.