From 09387e0100f9e17fa0feda6a47d799d74e2cea8a Mon Sep 17 00:00:00 2001 From: Daniel Scharrer Date: Sat, 14 Jun 2014 22:36:30 +0200 Subject: [PATCH] Reduce scope of variable --- src/util/encoding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/encoding.cpp b/src/util/encoding.cpp index 4b76e6d..b4c1340 100644 --- a/src/util/encoding.cpp +++ b/src/util/encoding.cpp @@ -135,8 +135,8 @@ static void to_utf8_fallback(const std::string & from, std::string & to, codepag to.push_back(ascii); } - static bool warned = false; if(warn) { + static bool warned = false; log_warning << "unknown data while converting from CP" << cp << " to UTF-8"; if(!warned && (cp == cp_windows1252 || cp == cp_utf16le)) { #if INNOEXTRACT_HAVE_ICONV