coverity#1249458 Explicit null dereferenced

Change-Id: I9e56aa8908ae6747d6820d8b90e85ec07e981223
This commit is contained in:
Caolán McNamara
2014-10-25 14:57:10 +01:00
parent 4d08aba74b
commit 6c761698e8

View File

@@ -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)
{