зеркало из https://github.com/mozilla/gecko-dev.git
Fix for scottip. Initialize return value to NS_OK for nsStreamListenerProxy::OnDataAvailable. This was causing some failures on release builds and purify builds in particular because there was a particular case in one of the clauses where it would rely on rv which was unitialized.
This commit is contained in:
Родитель
05a6e05ec2
Коммит
e20a49ec84
|
@ -790,7 +790,7 @@ NS_IMETHODIMP
|
||||||
nsStreamListenerProxy::OnDataAvailable(nsIURL* aURL, nsIInputStream *aIStream,
|
nsStreamListenerProxy::OnDataAvailable(nsIURL* aURL, nsIInputStream *aIStream,
|
||||||
PRUint32 aLength)
|
PRUint32 aLength)
|
||||||
{
|
{
|
||||||
nsresult rv;
|
nsresult rv = NS_OK;
|
||||||
|
|
||||||
if (PR_GetCurrentThread() == gNetlibThread) {
|
if (PR_GetCurrentThread() == gNetlibThread) {
|
||||||
OnDataAvailableProxyEvent* ev;
|
OnDataAvailableProxyEvent* ev;
|
||||||
|
@ -808,7 +808,7 @@ nsStreamListenerProxy::OnDataAvailable(nsIURL* aURL, nsIInputStream *aIStream,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
mRealListener->OnDataAvailable(aURL, aIStream, aLength);
|
rv = mRealListener->OnDataAvailable(aURL, aIStream, aLength);
|
||||||
}
|
}
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче