diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-20 16:33:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-21 10:24:54 +0100 |
commit | f9de525ed646a37e6bc28a40ec1152a613db9218 (patch) | |
tree | 2cbe0c9d9ed32d6d1d3967a985876232cf954e41 /hwpfilter | |
parent | 346db1dac29d63445049c14c6c3e022d419e388e (diff) |
forcepoint #2
Thanks to Antti Levomäki and Christian Jalio from Forcepoint.
Change-Id: Ie2b644a3c4c1c165334768eea73d451f07f97def
Reviewed-on: https://gerrit.libreoffice.org/50054
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
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 230f396be7d5..0aedfb11d1db 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 ) |