summaryrefslogtreecommitdiff
path: root/cppu/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-30 20:34:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-07-03 21:21:09 +0100
commit7d851250e5e773669157135208363e02ec7d1037 (patch)
treeeed8a304c0ce6ecd23dc56a43624bb7bb1957a9a /cppu/source
parent1268ac16683ac695da2ccb2b0a9fbcb1bf8cd21d (diff)
we don't need to check for complete length, any non 0 length will do
Change-Id: I6978524ef934ee97d151e0fd22f3a0dfc91fd26e
Diffstat (limited to 'cppu/source')
-rw-r--r--cppu/source/uno/env_subst.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppu/source/uno/env_subst.cxx b/cppu/source/uno/env_subst.cxx
index 8ae23bfba458..b82aeed5e2f6 100644
--- a/cppu/source/uno/env_subst.cxx
+++ b/cppu/source/uno/env_subst.cxx
@@ -32,14 +32,14 @@ CPPU_DLLPUBLIC void SAL_CALL uno_getEnvironment(uno_Environment ** ppEnv,
rtl::OString a_envName("UNO_ENV_SUBST:");
a_envName += rtl::OUStringToOString(envDcp, RTL_TEXTENCODING_ASCII_US);
char * c_value = getenv(a_envName.getStr());
- if (c_value && rtl_str_getLength(c_value))
+ if (c_value && *c_value)
{
rtl::OString a_envDcp(a_envName.copy(a_envName.indexOf(':') + 1));
OSL_TRACE("UNO_ENV_SUBST \"%s\" -> \"%s\"", a_envDcp.getStr(), c_value);
rtl::OUString value(c_value, rtl_str_getLength(c_value), RTL_TEXTENCODING_ASCII_US);
- envDcp = value;
+ envDcp = value;
}
uno_direct_getEnvironment(ppEnv, envDcp.pData, pContext);