summaryrefslogtreecommitdiffstats
path: root/netwerk
diff options
context:
space:
mode:
authorGaming4JC <g4jc@bulletmail.org>2018-10-23 20:28:01 -0400
committerGaming4JC <g4jc@bulletmail.org>2018-10-23 20:28:01 -0400
commite4cc27a0e791be3d504ed91355a9ea03711f2aa5 (patch)
treebacf81fbc4027c08068aedf4cdd572a17c5f1ade /netwerk
parentdbac7d6914a2a370bca54f9912dbfeaee2182584 (diff)
downloadUXP-e4cc27a0e791be3d504ed91355a9ea03711f2aa5.tar
UXP-e4cc27a0e791be3d504ed91355a9ea03711f2aa5.tar.gz
UXP-e4cc27a0e791be3d504ed91355a9ea03711f2aa5.tar.lz
UXP-e4cc27a0e791be3d504ed91355a9ea03711f2aa5.tar.xz
UXP-e4cc27a0e791be3d504ed91355a9ea03711f2aa5.zip
backport m-c bug 1333172 - Avoid 1100 warnings by replacing NS_ENSURE_SUCCESS in nsNetUtilInlines.h:180
Diffstat (limited to 'netwerk')
-rw-r--r--netwerk/base/nsNetUtilInlines.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/netwerk/base/nsNetUtilInlines.h b/netwerk/base/nsNetUtilInlines.h
index 7003814d5..b831ec2e7 100644
--- a/netwerk/base/nsNetUtilInlines.h
+++ b/netwerk/base/nsNetUtilInlines.h
@@ -224,7 +224,9 @@ NS_NewChannelInternal(nsIChannel **outChannel,
aUri,
aLoadInfo,
getter_AddRefs(channel));
- NS_ENSURE_SUCCESS(rv, rv);
+ if (NS_FAILED(rv)) {
+ return rv;
+ }
if (aLoadGroup) {
rv = channel->SetLoadGroup(aLoadGroup);