зеркало из https://github.com/mozilla/pjs.git
Fixes bug 59661. Occurances of uninitialized variables... r=gagan, sr=mscott.
This commit is contained in:
Родитель
74dfc22ae5
Коммит
a4b1f04c3b
|
@ -169,7 +169,7 @@ NS_IMETHODIMP
|
|||
nsJARChannel::Cancel(nsresult status)
|
||||
{
|
||||
NS_ASSERTION(NS_FAILED(status), "shouldn't cancel with a success code");
|
||||
nsresult rv;
|
||||
nsresult rv = NS_OK;
|
||||
nsAutoMonitor monitor(mMonitor);
|
||||
|
||||
if (mJarExtractionTransport) {
|
||||
|
|
|
@ -125,7 +125,7 @@ public:
|
|||
|
||||
NS_IMETHOD
|
||||
OnStartRequest(nsIChannel *channel, nsISupports *aContext) {
|
||||
nsresult rv;
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
NS_ASSERTION(mDownstreamListener, "no downstream listener");
|
||||
|
||||
|
@ -141,7 +141,7 @@ public:
|
|||
NS_IMETHOD
|
||||
OnStopRequest(nsIChannel *channel, nsISupports *aContext,
|
||||
nsresult aStatus, const PRUnichar* aStatusArg) {
|
||||
nsresult rv;
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
|
||||
NS_ASSERTION(mDownstreamListener, "no downstream listener");
|
||||
|
|
|
@ -86,7 +86,7 @@ nsMIMEService::Init() {
|
|||
// nsIMIMEService methods
|
||||
NS_IMETHODIMP
|
||||
nsMIMEService::GetFromExtension(const char *aFileExt, nsIMIMEInfo **_retval) {
|
||||
nsresult rv;
|
||||
nsresult rv = NS_OK;
|
||||
if( !mXML || NS_FAILED (rv = mXML->GetFromExtension( aFileExt, _retval ) ) )
|
||||
{
|
||||
if ( mNative )
|
||||
|
|
|
@ -834,7 +834,7 @@ nsresult nsHTTPServerListener::Abort()
|
|||
nsresult nsHTTPServerListener::FireSingleOnData(nsIStreamListener *aListener,
|
||||
nsISupports *aContext)
|
||||
{
|
||||
nsresult rv;
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
if (mHeadersDone) {
|
||||
rv = FinishedResponseHeaders() ;
|
||||
|
|
|
@ -169,7 +169,7 @@ NS_IMETHODIMP
|
|||
nsJARChannel::Cancel(nsresult status)
|
||||
{
|
||||
NS_ASSERTION(NS_FAILED(status), "shouldn't cancel with a success code");
|
||||
nsresult rv;
|
||||
nsresult rv = NS_OK;
|
||||
nsAutoMonitor monitor(mMonitor);
|
||||
|
||||
if (mJarExtractionTransport) {
|
||||
|
|
|
@ -126,7 +126,7 @@ nsUnknownDecoder::OnDataAvailable(nsIChannel *aChannel,
|
|||
PRUint32 aSourceOffset,
|
||||
PRUint32 aCount)
|
||||
{
|
||||
nsresult rv;
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
if (!mNextListener) return NS_ERROR_FAILURE;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче