Bug 727970: Check formerly-unused rv in TestProtocols.cpp, to fix build warning. r=jduell

This commit is contained in:
Daniel Holbert 2012-02-16 15:16:14 -08:00
parent b1718426bb
commit df204fac8a

View File

@ -797,6 +797,12 @@ nsresult LoadURLsFromFile(char *aFileName)
if (urlString.Length()) {
LOG(("\t%s\n", urlString.get()));
rv = StartLoadingURL(urlString.get());
if (NS_FAILED(rv)) {
// No need to log an error -- StartLoadingURL already
// did that for us, probably.
PR_Close(fd);
return rv;
}
}
}
}