diff options
author | Gaming4JC <g4jc@bulletmail.org> | 2018-10-23 20:28:01 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@bulletmail.org> | 2018-10-23 20:28:01 -0400 |
commit | e4cc27a0e791be3d504ed91355a9ea03711f2aa5 (patch) | |
tree | bacf81fbc4027c08068aedf4cdd572a17c5f1ade | |
parent | dbac7d6914a2a370bca54f9912dbfeaee2182584 (diff) | |
download | UXP-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
-rw-r--r-- | netwerk/base/nsNetUtilInlines.h | 4 |
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); |