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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user