diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-20 16:33:38 +0000 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-02-22 10:21:39 +0100 |
commit | fb953ed10ca5a9f574d6ebf0598fb438bd3f4509 (patch) | |
tree | 1d87496132ec3f5bb597cf39c8284bf9d61b95b4 | |
parent | ae9a3581d1d1be4bc4f4da4c57d7449458f256a1 (diff) |
forcepoint #2
Thanks to Antti Levomäki and Christian Jalio from Forcepoint.
Change-Id: Ie2b644a3c4c1c165334768eea73d451f07f97def
Reviewed-on: https://gerrit.libreoffice.org/50082
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-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 41fb6d34cb81..d2eaf57bd28f 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 ) |