diff --git a/src/lib/support/StringBuilder.cpp b/src/lib/support/StringBuilder.cpp index 44c7a8004ffb82..30f929e6fa0ce4 100644 --- a/src/lib/support/StringBuilder.cpp +++ b/src/lib/support/StringBuilder.cpp @@ -28,7 +28,9 @@ StringBuilderBase & StringBuilderBase::AddFormat(const char * format, ...) if (mWriter.Available() > 0) { output = reinterpret_cast(mWriter.Buffer() + mWriter.Needed()); - } else { + } + else + { output = reinterpret_cast(mWriter.Buffer() + mWriter.Size()); }