mirror of https://github.com/Icinga/icinga2.git
Fix string comparison on edge cases
This fixes a few edge cases where the string comparison failed before.
This commit is contained in:
parent
cc417ca176
commit
1352b15220
|
@ -293,7 +293,7 @@ bool NodeUtility::GetConfigurationIncludeState(const String& value, bool recursi
|
|||
* First hit breaks out of the loop.
|
||||
*/
|
||||
|
||||
if (!line.compare(affectedInclude)) {
|
||||
if (line.compare(0, affectedInclude.GetLength(), affectedInclude) == 0) {
|
||||
isIncluded = true;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue