From 34082b3dbccf839ac54e08e41f6bf2ea35424d6f Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Wed, 1 Nov 2000 20:30:47 +0000 Subject: [PATCH] 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 --- mozilla/xpcom/base/nsLogging.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/xpcom/base/nsLogging.cpp b/mozilla/xpcom/base/nsLogging.cpp index 63a56c0f40d..0af4d5f1105 100644 --- a/mozilla/xpcom/base/nsLogging.cpp +++ b/mozilla/xpcom/base/nsLogging.cpp @@ -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;