summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-20 16:33:38 +0000
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-02-22 10:07:49 +0100
commit8381d6b95caf5dabf671861e1cafa24596584dfa (patch)
tree075823e390df8ae250568fa451e095aff808143a /hwpfilter
parentfc956febae30ed0604477c49a78247bc81cde66e (diff)
forcepoint #2
Thanks to Antti Levomäki and Christian Jalio from Forcepoint. Change-Id: Ie2b644a3c4c1c165334768eea73d451f07f97def Reviewed-on: https://gerrit.libreoffice.org/50081 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
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 1e0170401dca..31423c0a3db2 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 )