diff --git a/netwerk/protocol/http/src/nsHTTPRequest.cpp b/netwerk/protocol/http/src/nsHTTPRequest.cpp index 9e8e15aa778b..11e5dc050bbf 100644 --- a/netwerk/protocol/http/src/nsHTTPRequest.cpp +++ b/netwerk/protocol/http/src/nsHTTPRequest.cpp @@ -886,7 +886,7 @@ nsHTTPPipelinedRequest::AdvanceToNextRequest () return NS_ERROR_FAILURE; req = dont_AddRef ((nsHTTPRequest *) mRequests -> ElementAt (0)); - if (req != NULL) + if (req) { mTransport -> SetNotificationCallbacks (nsnull); req -> mPipelinedRequest = nsnull; @@ -901,7 +901,7 @@ nsHTTPPipelinedRequest::AdvanceToNextRequest () req = dont_AddRef ((nsHTTPRequest *) mRequests -> ElementAt (0)); - if (req != NULL) + if (req) mTransport -> SetNotificationCallbacks (req -> mConnection); return NS_OK;