My bad; I reviewed this code and I suck. This is the right fix.

git-svn-id: svn://10.0.0.236/trunk@61595 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com
2000-02-24 06:42:36 +00:00
parent 820d8f7dad
commit bc7f0ba1fc
3 changed files with 21 additions and 6 deletions

View File

@@ -128,9 +128,14 @@ nsXPIDLCString& nsXPIDLCString::operator =(const char* aCString)
if (mBufOwner && mBuf)
XPIDL_FREE(mBuf);
if (aCString)
if (aCString) {
mBuf = Copy(aCString);
mBufOwner = PR_TRUE;
mBufOwner = PR_TRUE;
}
else {
mBuf = 0;
mBufOwner = PR_FALSE;
}
return *this;
}