From 3c850ac23b3c951f7190c837aa4bdeab2b721d7c Mon Sep 17 00:00:00 2001 From: random-zebra Date: Thu, 9 Apr 2020 03:14:30 +0200 Subject: [PATCH] [BUG] Fix off-by-one for shrinkdebugfile default --- src/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.cpp b/src/init.cpp index 68a8992e8f2d..84b937d92143 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1061,7 +1061,7 @@ bool AppInit2() #ifndef WIN32 CreatePidFile(GetPidFile(), getpid()); #endif - if (GetBoolArg("-shrinkdebugfile", logCategories != BCLog::NONE)) + if (GetBoolArg("-shrinkdebugfile", logCategories == BCLog::NONE)) ShrinkDebugFile(); if (fPrintToDebugLog) OpenDebugLog();