From 1352b1522010f5899bee166792e50a24cad5bbb3 Mon Sep 17 00:00:00 2001 From: Michael Insel Date: Wed, 5 Dec 2018 20:12:06 +0100 Subject: [PATCH] Fix string comparison on edge cases This fixes a few edge cases where the string comparison failed before. --- lib/cli/nodeutility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/nodeutility.cpp b/lib/cli/nodeutility.cpp index d7ea8bce3..b8df144a0 100644 --- a/lib/cli/nodeutility.cpp +++ b/lib/cli/nodeutility.cpp @@ -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; /*