summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-01-19 09:39:01 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-01-19 15:54:37 +0100
commit4d27776a8c570ae4fc525c78ecd135c30dc7ae49 (patch)
tree3470ad342b6fea1d3863ab866ef8f9cd7e70206a /sal
parent8da8e5bf24bbcaa35d5d58d32ca3c173bda62a65 (diff)
coverity#1427647 acknowledge Resource leak is deliberate
Change-Id: I9d4beccfa7ca8953360d67d08a3b2f04d2ccfed9 Reviewed-on: https://gerrit.libreoffice.org/48178 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/all/log.cxx2
1 files changed, 1 insertions, 1 deletions
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;