diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-07 10:15:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-07 10:48:25 +0100 |
commit | 0d78ad871e85a74a2a7eac2f2a2ff94776f35e77 (patch) | |
tree | a29ea7098cc49b1116db16f219bdc662e04ac874 /tools/source/inet/inetmime.cxx | |
parent | clang scan-build: Dereference of null pointer (diff) | |
download | core-0d78ad871e85a74a2a7eac2f2a2ff94776f35e77.tar.gz core-0d78ad871e85a74a2a7eac2f2a2ff94776f35e77.zip |
DBG_ASSERT->assert when followed by dereference
Change-Id: Ic1c999ffdc391ea01be5711721e7c9e63179473e
Diffstat (limited to 'tools/source/inet/inetmime.cxx')
-rw-r--r-- | tools/source/inet/inetmime.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx index ff67d01d2a20..9f69e72a019a 100644 --- a/tools/source/inet/inetmime.cxx +++ b/tools/source/inet/inetmime.cxx @@ -2872,7 +2872,7 @@ void INetMIMEOutputSink::writeSequence(const sal_uInt32 * pBegin, void INetMIMEOutputSink::writeSequence(const sal_Unicode * pBegin, const sal_Unicode * pEnd) { - DBG_ASSERT(pBegin && pBegin <= pEnd, + assert(pBegin && pBegin <= pEnd && "INetMIMEOutputSink::writeSequence(): Bad sequence"); sal_Char * pBufferBegin = new sal_Char[pEnd - pBegin]; |