diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-21 15:07:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-21 20:48:56 +0100 |
commit | 23316f2ef210960f22cba225be3d74e29b3182f4 (patch) | |
tree | d48ae9c7b98e63f8e4ccba90e4ac24fcc5c92d38 /sdext/source/pdfimport/xpdfwrapper | |
parent | 9752a4261f0707d6767eb0647d0b9be4e3d63952 (diff) |
cid#1474243 Uninitialized scalar variable
and
cid#1473901 Uninitialized scalar variable
Change-Id: I6a1d0784865c1a77eacbe25497b97ea63cf3705c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112849
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sdext/source/pdfimport/xpdfwrapper')
-rw-r--r-- | sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx index 39a1df6f4a76..a6390f0157e9 100644 --- a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx +++ b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx @@ -82,6 +82,7 @@ sal_uInt32 PngHelper::deflateBuffer( const Output_t* i_pBuf, size_t i_nLen, Outp aStream.zalloc = Z_NULL; aStream.zfree = Z_NULL; aStream.opaque = Z_NULL; + aStream.total_out = aStream.total_in = 0; if (Z_OK != deflateInit(&aStream, Z_BEST_COMPRESSION)) return 0; aStream.avail_in = uInt(i_nLen); |