summaryrefslogtreecommitdiff
path: root/mailnews/mime/src/mimehdrs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mailnews/mime/src/mimehdrs.cpp')
-rw-r--r--mailnews/mime/src/mimehdrs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mailnews/mime/src/mimehdrs.cpp b/mailnews/mime/src/mimehdrs.cpp
index 6d187ed529..92452bfb00 100644
--- a/mailnews/mime/src/mimehdrs.cpp
+++ b/mailnews/mime/src/mimehdrs.cpp
@@ -493,8 +493,9 @@ MimeHeaders_get_parameter (const char *header_value, const char *parm_name,
if (NS_FAILED(rv))
return nullptr;
+ nsCString hdr_value(header_value);
nsCString result;
- rv = mimehdrpar->GetParameterInternal(header_value, parm_name, charset,
+ rv = mimehdrpar->GetParameterInternal(hdr_value, parm_name, charset,
language, getter_Copies(result));
return NS_SUCCEEDED(rv) ? PL_strdup(result.get()) : nullptr;
}