Commit 417893fc authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[trac1004] add zero check as well

parent 8e715d52
......@@ -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();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment