X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c15b8bfd6fbc605fcf5f77faf713e6cebe3f456e..2fa7bb014e38306b5d3d0565313afbdcc6722bd3:/src/common/string.cpp 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