X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c15b8bfd6fbc605fcf5f77faf713e6cebe3f456e..136bafcd3957f958062bbe5774d3c10c060e3a83:/src/common/string.cpp?ds=sidebyside diff --git a/src/common/string.cpp b/src/common/string.cpp index ffae5b4e12..12c4204759 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -365,8 +365,8 @@ bool wxStringBase::Alloc(size_t nLen) if ( pData->IsEmpty() ) { nLen += EXTRA_ALLOC; - wxStringData* pData = (wxStringData*) - malloc(sizeof(wxStringData) + (nLen + 1)*sizeof(wxChar)); + pData = (wxStringData *) + malloc(sizeof(wxStringData) + (nLen + 1)*sizeof(wxChar)); if ( pData == NULL ) { // allocation failure handled by caller