зеркало из https://github.com/mozilla/gecko-dev.git
fix crash in cookie viewer
This commit is contained in:
Родитель
58e57407a9
Коммит
389af52bf1
|
@ -166,6 +166,9 @@ nsSupportsArray::LastIndexOf(const nsISupports* aPossibleElement)
|
|||
NS_IMETHODIMP_(PRBool)
|
||||
nsSupportsArray::InsertElementAt(nsISupports* aElement, PRUint32 aIndex)
|
||||
{
|
||||
if (!aElement) {
|
||||
return PR_FALSE;
|
||||
}
|
||||
if (aIndex <= mCount) {
|
||||
if (mArraySize < (mCount + 1)) { // need to grow the array
|
||||
mArraySize += kGrowArrayBy;
|
||||
|
|
Загрузка…
Ссылка в новой задаче