From ef9853215d61731f1a4d97d13618e4cb12c40c57 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Sat, 24 Mar 2018 12:52:59 +0100 Subject: [PATCH] Hot-fix for #570 --- src/dscanner/main.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dscanner/main.d b/src/dscanner/main.d index 2c9271b..3f7b304 100644 --- a/src/dscanner/main.d +++ b/src/dscanner/main.d @@ -487,7 +487,7 @@ bool hasWrongIniFileSection(string confiFilename, bool patch) static immutable v2 = "dscanner.analysis.config.StaticAnalysisConfig"; char[] c = cast(char[]) readFile(confiFilename); - try if (const ptrdiff_t i = c.indexOf(v1)) + try if (c.indexOf(v2) < 0) { if (!patch) {