coverity#1249458 Explicit null dereferenced
Change-Id: I9e56aa8908ae6747d6820d8b90e85ec07e981223
This commit is contained in:
@@ -126,7 +126,7 @@ namespace sax_fastparser {
|
|||||||
void FastSaxSerializer::write( const char* pStr, sal_Int32 nLen, bool bEscape )
|
void FastSaxSerializer::write( const char* pStr, sal_Int32 nLen, bool bEscape )
|
||||||
{
|
{
|
||||||
if (nLen == -1)
|
if (nLen == -1)
|
||||||
nLen = strlen(pStr);
|
nLen = pStr ? strlen(pStr) : 0;
|
||||||
|
|
||||||
if (!bEscape)
|
if (!bEscape)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user