diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-20 16:33:38 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-02-21 17:05:25 +0100 |
commit | ada182569b2a4e25764d67a30f962eb16aea81a7 (patch) | |
tree | e01b77264b3b57289472e05df949949fb7f2616b /hwpfilter | |
parent | 4b108bfb65082c26c4531e806af545444f499c91 (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.cxx | 2 |
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 ) |