Browse Source

[trac1004] add zero check as well

Jelte Jansen 14 years ago
parent
commit
417893fc06
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/config/ccsession.cc

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

@@ -222,7 +222,8 @@ readLoggersConf(std::vector<isc::log::LoggerSpecification>& specs,
     // We could tokenize the string, but if * is used, the string
     // should either be "*", or start with "*.", so it's easier to
     // look directly
-    if (lname[0] == '*' && (lname.length() == 1 || lname[1] == '.')) {
+    if (lname.length() > 0 && lname[0] == '*' &&
+        (lname.length() == 1 || lname[1] == '.')) {
         lname = isc::log::getRootLoggerName();
     }