X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f020bfb92275cbc5130526d2bc12f4da15b13f2..65a1bb98f584bdade18174bff3be96aad4466669:/src/common/string.cpp?ds=inline diff --git a/src/common/string.cpp b/src/common/string.cpp index ffddc7611e..20c11c569a 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -968,6 +968,7 @@ wxString::wxString(const char *psz, wxMBConv& conv, size_t nLength) wxCharBuffer inBuf((const char *)NULL); if (nLength != npos) { + wxASSERT( psz != NULL ); wxCharBuffer tmp(nLength); memcpy(tmp.data(), psz, nLength); tmp.data()[nLength] = '\0'; @@ -1025,6 +1026,7 @@ wxString::wxString(const wchar_t *pwz, wxMBConv& conv, size_t nLength) wxWCharBuffer inBuf((const wchar_t *)NULL); if (nLength != npos) { + wxASSERT( pwz != NULL ); wxWCharBuffer tmp(nLength); memcpy(tmp.data(), pwz, nLength * sizeof(wchar_t)); tmp.data()[nLength] = '\0';