This commit is contained in:
jband%netscape.com 2001-05-10 04:13:45 +00:00
Родитель 352a5619f2
Коммит 2c6c8263c2
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -166,7 +166,7 @@ NS_IMETHODIMP nsSupportsStringImpl::SetDataWithLength(const PRUint32 aLength,
// otherwise, we'll have to allocate a new buffer, copy
// into that new buffer, and adopt it
char* newData(nsnull);
char* newData = nsnull;
if (aData) {
// allocate a new buffer
size_t size((aLength + 1) * sizeof(char));
@ -275,7 +275,7 @@ NS_IMETHODIMP nsSupportsWStringImpl::SetDataWithLength(const PRUint32 aLength,
// otherwise, we'll have to allocate a new buffer, copy
// into that new buffer, and adopt it
PRUnichar* newData(nsnull);
PRUnichar* newData = nsnull;
if (aData) {
// allocate a new buffer
size_t size((aLength + 1) * sizeof(PRUnichar));