diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2013-12-11 13:54:05 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2013-12-11 17:54:55 +0100 |
commit | 938657613982d0edecc1aa71e9314cff6a0bb56f (patch) | |
tree | 092c4e7fbb60944601cbefa90d36db513d66dff4 /cppuhelper | |
parent | cppu: Avoid uno_direct_getEnvironment() indirection. (diff) | |
download | core-938657613982d0edecc1aa71e9314cff6a0bb56f.tar.gz core-938657613982d0edecc1aa71e9314cff6a0bb56f.zip |
Let's have a static variable for getenv("UNO_ENV_LOG").
Change-Id: Id382726b86726515a9ae3017c11fad0420136a4c
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/shlib.cxx | 2 |
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)); |