Index: core/fpdfdoc/doc_formfield.cpp |
diff --git a/core/fpdfdoc/doc_formfield.cpp b/core/fpdfdoc/doc_formfield.cpp |
index d9333eef90d67999b20979515d45ebd333fd2862..84d9a52dac868d2b01bd6178a439af84a21601fe 100644 |
--- a/core/fpdfdoc/doc_formfield.cpp |
+++ b/core/fpdfdoc/doc_formfield.cpp |
@@ -1062,7 +1062,7 @@ void CPDF_FormField::LoadDA() { |
} |
CPDF_SimpleParser syntax(DA.AsStringC()); |
syntax.FindTagParamFromStart("Tf", 2); |
- CFX_ByteString font_name = syntax.GetWord(); |
+ CFX_ByteString font_name(syntax.GetWord()); |
CPDF_Dictionary* pFontDict = NULL; |
if (m_pForm->m_pFormDict && m_pForm->m_pFormDict->GetDictBy("DR") && |
m_pForm->m_pFormDict->GetDictBy("DR")->GetDictBy("Font")) { |