mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
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.
|
* First hit breaks out of the loop.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!line.compare(affectedInclude)) {
|
if (line.compare(0, affectedInclude.GetLength(), affectedInclude) == 0) {
|
||||||
isIncluded = true;
|
isIncluded = true;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user