From 7d851250e5e773669157135208363e02ec7d1037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 30 Jun 2012 20:34:46 +0100 Subject: [PATCH] we don't need to check for complete length, any non 0 length will do Change-Id: I6978524ef934ee97d151e0fd22f3a0dfc91fd26e --- cppu/source/uno/env_subst.cxx | 4 ++-- 1 file 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);