[Libreoffice-commits] core.git: sal/osl

Caolán McNamara caolanm at redhat.com
Fri Jan 19 14:55:01 UTC 2018


 sal/osl/all/log.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4d27776a8c570ae4fc525c78ecd135c30dc7ae49
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Jan 19 09:39:01 2018 +0000

    coverity#1427647 acknowledge Resource leak is deliberate
    
    Change-Id: I9d4beccfa7ca8953360d67d08a3b2f04d2ccfed9
    Reviewed-on: https://gerrit.libreoffice.org/48178
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx
index 83ff23e42add..e25136f2002d 100644
--- a/sal/osl/all/log.cxx
+++ b/sal/osl/all/log.cxx
@@ -155,7 +155,7 @@ char const * getLogLevel() {
 
 std::ofstream * getLogFile() {
     // First check the environment variable, then the setting in logging.ini
-    char const * logFile = getEnvironmentVariable("SAL_LOG_FILE");
+    static char const * logFile = getEnvironmentVariable("SAL_LOG_FILE");
     if (!logFile)
         return nullptr;
 


More information about the Libreoffice-commits mailing list