Browse Source

Reduce scope of variable

coverity_scan
Daniel Scharrer 12 years ago
parent
commit
09387e0100
  1. 2
      src/util/encoding.cpp

2
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

Loading…
Cancel
Save