Browse Source

use explicit operator precedence; reviewed via jabber

Mark Andrews 12 years ago
parent
commit
6714481ece
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/config/ccsession.cc

+ 2 - 2
src/lib/config/ccsession.cc

@@ -341,8 +341,8 @@ getRelatedLoggers(ConstElementPtr loggers) {
         const std::string cur_name = cur_logger->get("name")->stringValue();
         // If name is '*', or starts with '*.', replace * with root
         // logger name.
-        if (cur_name == "*" || cur_name.length() > 1 &&
-            cur_name[0] == '*' && cur_name[1] == '.') {
+        if (cur_name == "*" || (cur_name.length() > 1 &&
+            cur_name[0] == '*' && cur_name[1] == '.')) {
 
             // Substitute the "*" with the root name
             std::string mod_name = cur_name;