summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-19 12:41:08 +0200
committerNoel Grandin <noel@peralex.com>2014-02-20 09:31:11 +0200
commit97a185d8b98976d638742d8a35a83597d239c678 (patch)
tree726e4ab512727f6cd4bc7bb268bafad788ecc07f /sdext
parenta46e4518e5c3bfd2fc425de928672f4e3df36fd3 (diff)
cid#983380 Dereference before null check
Change-Id: I9504738a5291b85362a80e630d9e413825fa6572
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/pdfparse/pdfentries.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx
index 4cef68866569..6603368ba3fa 100644
--- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx
+++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx
@@ -666,11 +666,6 @@ bool PDFObject::getDeflatedStream( char** ppStream, unsigned int* pBytes, const
{
unsigned int nOuterStreamLen = m_pStream->m_nEndOffset - m_pStream->m_nBeginOffset;
*ppStream = static_cast<char*>(rtl_allocateMemory( nOuterStreamLen ));
- if( ! ppStream )
- {
- *pBytes = 0;
- return false;
- }
unsigned int nRead = rContext.readOrigBytes( m_pStream->m_nBeginOffset, nOuterStreamLen, *ppStream );
if( nRead != nOuterStreamLen )
{