summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2013-12-11 13:54:05 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2013-12-11 17:54:55 +0100
commit938657613982d0edecc1aa71e9314cff6a0bb56f (patch)
tree092c4e7fbb60944601cbefa90d36db513d66dff4 /cppuhelper
parentacf233e2bb259759c9167a32e17fcf13e1f54f6c (diff)
Let's have a static variable for getenv("UNO_ENV_LOG").
Change-Id: Id382726b86726515a9ae3017c11fad0420136a4c
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/shlib.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppuhelper/source/shlib.cxx b/cppuhelper/source/shlib.cxx
index 73f880947a18..6176b2318d06 100644
--- a/cppuhelper/source/shlib.cxx
+++ b/cppuhelper/source/shlib.cxx
@@ -83,7 +83,7 @@ static void getLibEnv(oslModule lib,
if (!pEnv->is() && pEnvTypeName)
{
*pSourceEnv_name = OUString::createFromAscii(pEnvTypeName);
- const char * pUNO_ENV_LOG = ::getenv( "UNO_ENV_LOG" );
+ static const char * pUNO_ENV_LOG = ::getenv( "UNO_ENV_LOG" );
if (pUNO_ENV_LOG && rtl_str_getLength(pUNO_ENV_LOG) )
{
OString implName(OUStringToOString(cImplName, RTL_TEXTENCODING_ASCII_US));