diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-25 14:57:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-25 16:56:15 +0100 |
commit | 6c761698e8866360a09784c26b7784fbae30a191 (patch) | |
tree | 894636c7347baed74d92eb0a6c21770692e6fbf9 /sax | |
parent | 4d08aba74b572287a7a0b21a0d8895cad515470a (diff) |
coverity#1249458 Explicit null dereferenced
Change-Id: I9e56aa8908ae6747d6820d8b90e85ec07e981223
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/fastserializer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx index 9209bd803c39..394af442ff21 100644 --- a/sax/source/tools/fastserializer.cxx +++ b/sax/source/tools/fastserializer.cxx @@ -126,7 +126,7 @@ namespace sax_fastparser { void FastSaxSerializer::write( const char* pStr, sal_Int32 nLen, bool bEscape ) { if (nLen == -1) - nLen = strlen(pStr); + nLen = pStr ? strlen(pStr) : 0; if (!bEscape) { |