aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoribanic <[email protected]>2021-05-16 07:43:32 +0000
committeribanic <[email protected]>2021-05-16 07:43:32 +0000
commitf5fa6434aa3ad64988e85323dff7eb13d4829d0f (patch)
tree502687efd998471775e27b78d41aee4f979289ee
parentPrevent accessing empty buffer (diff)
downloadvmime-f5fa6434aa3ad64988e85323dff7eb13d4829d0f.tar.gz
vmime-f5fa6434aa3ad64988e85323dff7eb13d4829d0f.zip
fixed coding style
-rw-r--r--src/vmime/charsetConverter_icu.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vmime/charsetConverter_icu.cpp b/src/vmime/charsetConverter_icu.cpp
index faae7d32..5016dca8 100644
--- a/src/vmime/charsetConverter_icu.cpp
+++ b/src/vmime/charsetConverter_icu.cpp
@@ -433,8 +433,9 @@ void charsetFilteredOutputStream_icu::writeImpl(
}
const size_t uniLength = uniTarget - &uniBuffer[0];
- if(uniLength == 0)
+ if(uniLength == 0) {
continue;
+ }
// Allocate buffer for destination charset
const size_t cpSize = ucnv_getMinCharSize(m_to) * uniLength;
@@ -522,8 +523,9 @@ void charsetFilteredOutputStream_icu::flush() {
}
const size_t uniLength = uniTarget - &uniBuffer[0];
- if(uniLength == 0)
+ if(uniLength == 0) {
continue;
+ }
// Allocate buffer for destination charset
const size_t cpSize = ucnv_getMinCharSize(m_to) * uniLength;