fix warning.

This commit is contained in:
sspitzer%netscape.com 1999-12-03 09:53:26 +00:00
parent a4d3aa2f8b
commit 32c7c08719

View File

@ -42,7 +42,9 @@ void nsUrlListenerManager::ReleaseListeners()
if(m_listeners)
{
PRUint32 count;
nsresult rv = m_listeners->Count(&count);
nsresult rv = m_listeners->Count(&count);
NS_ASSERTION(NS_SUCCEEDED(rv), "m_listeners->Count() failed");
if (NS_FAILED(rv)) return;
for (int i = count - 1; i >= 0; i--)
m_listeners->RemoveElementAt(i);