fixes bug 329450 "EnumerateCategory enumerates deleted entries" patch by chpe@gnome.org, r+sr=darin

git-svn-id: svn://10.0.0.236/trunk@191923 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%meer.net
2006-03-07 20:48:44 +00:00
parent d41f2995c9
commit 2e0a1b5e80

View File

@@ -198,7 +198,8 @@ PLDHashOperator PR_CALLBACK
EntryEnumerator::enumfunc_createenumerator(CategoryLeaf* aLeaf, void* userArg)
{
EntryEnumerator* mythis = NS_STATIC_CAST(EntryEnumerator*, userArg);
mythis->mArray[mythis->mCount++] = aLeaf->GetKey();
if (aLeaf->nonpValue)
mythis->mArray[mythis->mCount++] = aLeaf->GetKey();
return PL_DHASH_NEXT;
}