summaryrefslogtreecommitdiffstats
path: root/comphelper
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-01-30 11:31:55 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-01-30 11:35:13 +0000
commitc02f1e27934a29bc2d89ed34be8fa4d755d93de0 (patch)
tree981223919afb59d4c90145f9677d32c3ae3283b8 /comphelper
parentcoverity#1428736 Dereference null return value (diff)
downloadcore-c02f1e27934a29bc2d89ed34be8fa4d755d93de0.tar.gz
core-c02f1e27934a29bc2d89ed34be8fa4d755d93de0.zip
silence coverity#1428735 Use of untrusted scalar value
Change-Id: I7e40f25ce506b1a26d683848a1bc83c16baf762f
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/lok.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx
index 589f57b61bce..203426bdc691 100644
--- a/comphelper/source/misc/lok.cxx
+++ b/comphelper/source/misc/lok.cxx
@@ -123,6 +123,7 @@ bool isWhitelistedLanguage(const OUString& lang)
static std::vector<OUString> aWhitelist;
if (!bInitialized)
{
+ // coverity[tainted_data] - we trust the contents of this variable
const char* pWhitelist = getenv("LOK_WHITELIST_LANGUAGES");
if (pWhitelist)
{