Bug 1411744 - ESR only: Move variable declaration to original location to fix compile error. r+a=me
--- a/mailnews/mime/src/mimedrft.cpp
+++ b/mailnews/mime/src/mimedrft.cpp
@@ -1335,26 +1335,26 @@ mime_parse_stream_complete (nsMIMESessio
else
//We cannot use this kind of data for the message body! Therefore, move it as attachment
bodyAsAttachment = true;
}
else
composeFormat = nsIMsgCompFormat::PlainText;
char *body = nullptr;
+ uint32_t bodyLen = 0;
if (!bodyAsAttachment && mdd->messageBody->m_tmpFile)
{
int64_t fileSize;
nsCOMPtr<nsIFile> tempFileCopy;
mdd->messageBody->m_tmpFile->Clone(getter_AddRefs(tempFileCopy));
mdd->messageBody->m_tmpFile = do_QueryInterface(tempFileCopy);
tempFileCopy = nullptr;
mdd->messageBody->m_tmpFile->GetFileSize(&fileSize);
- uint32_t bodyLen = 0;
// The stream interface can only read up to 4GB (32bit uint).
// It is highly unlikely to encounter a body lager than that limit,
// so we just skip it instead of reading it in chunks.
if (fileSize < UINT32_MAX)
{
bodyLen = fileSize;
body = (char *)PR_MALLOC(bodyLen + 1);