summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-20 16:33:38 +0000
committerAndras Timar <andras.timar@collabora.com>2018-02-21 17:05:25 +0100
commitada182569b2a4e25764d67a30f962eb16aea81a7 (patch)
treee01b77264b3b57289472e05df949949fb7f2616b /hwpfilter
parent4b108bfb65082c26c4531e806af545444f499c91 (diff)
forcepoint #2
Thanks to Antti Levomäki and Christian Jalio from Forcepoint. Change-Id: Ie2b644a3c4c1c165334768eea73d451f07f97def
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hcode.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/hwpfilter/source/hcode.cxx b/hwpfilter/source/hcode.cxx
index e9a088c97137..9aaa9e98f04a 100644
--- a/hwpfilter/source/hcode.cxx
+++ b/hwpfilter/source/hcode.cxx
@@ -1217,6 +1217,8 @@ hchar_string hstr2ucsstr(hchar const* hstr)
hchar_string kstr2hstr(unsigned char const* src)
{
hchar_string ret;
+ if (!src)
+ return ret;
for (unsigned int i = 0; src[i] != '\0' ; i++)
{
if ( src[i] < 127 )