X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c86f1403c3737c07d58676a203f4707942684a01..8d7dafc91ad68448a481b78df798a7bc85a92a60:/src/common/intl.cpp?ds=sidebyside diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 6cb46f1be0..0a35449929 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -275,10 +275,8 @@ bool wxMsgCatalog::Load(const char *szDirPrefix, const char *szName) // examine header bool bValid = (size_t)nSize > sizeof(wxMsgCatalogHeader); - wxMsgCatalogHeader *pHeader; + wxMsgCatalogHeader *pHeader = (wxMsgCatalogHeader *)m_pData; if ( bValid ) { - pHeader = (wxMsgCatalogHeader *)m_pData; - // we'll have to swap all the integers if it's true m_bSwapped = pHeader->magic == MSGCATALOG_MAGIC_SW;