small tweak to get nspr logging running again. bug 58514 r=warren

git-svn-id: svn://10.0.0.236/trunk@82158 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
danm%netscape.com
2000-11-01 20:30:47 +00:00
parent 859b7a2217
commit 34082b3dbc

View File

@@ -247,6 +247,7 @@ EnsureLoggingService()
rv = gLoggingService->Init();
if (NS_FAILED(rv)) {
delete gLoggingService;
gLoggingService = nsnull;
return rv;
}
// Note that there's no AddRef here. That's because when the service manager
@@ -638,7 +639,7 @@ nsFileLogEventSink::Init(const char* filePath)
filePtr = stderr;
}
else {
filePtr = ::fopen(filePath, "W");
filePtr = ::fopen(filePath, "w");
if (filePtr == nsnull)
return NS_ERROR_FAILURE;
mCloseFile = PR_TRUE;