sal/osl/all/log.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 4d27776a8c570ae4fc525c78ecd135c30dc7ae49 Author: Caolán McNamara <caol...@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 <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits