diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-01 09:22:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-01 09:22:19 +0100 |
commit | a4f3959e36610003c8e9de36a5657b2204d6f526 (patch) | |
tree | 5a3b773a5e74cd560b3297be7a713a3393b55a1d | |
parent | 65abfe810ce7fd2a8ee0062ed0cb20eb8d267660 (diff) |
#i112871# missing parentheses around || within &&
-rwxr-xr-x | crashrep/source/unx/main.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crashrep/source/unx/main.cxx b/crashrep/source/unx/main.cxx index afdba0afeebc..7579de78ec94 100755 --- a/crashrep/source/unx/main.cxx +++ b/crashrep/source/unx/main.cxx @@ -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(); |