diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-12 08:57:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-15 12:53:38 +0200 |
commit | 6eba86ae9d6c8550e069ef933889610aee309381 (patch) | |
tree | a9b278f2d124c1db1261bc5128516fff3ea89919 /package | |
parent | afed3d177b8bfbc98d631867f200486bc2963e03 (diff) |
clang-tidy misc-redundant-expression
Change-Id: I708b0b486a233071f95592ccdb97f27fc35a23c4
Reviewed-on: https://gerrit.libreoffice.org/61783
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zipapi/ZipFile.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx index 270a2961b7c1..2e2a6216cb4f 100644 --- a/package/source/zipapi/ZipFile.cxx +++ b/package/source/zipapi/ZipFile.cxx @@ -824,7 +824,7 @@ sal_Int32 ZipFile::findEND() try { nLength = static_cast <sal_Int32 > (aGrabber.getLength()); - if (nLength == 0 || nLength < ENDHDR) + if (nLength < ENDHDR) return -1; nPos = nLength - ENDHDR - ZIP_MAXNAMELEN; nEnd = nPos >= 0 ? nPos : 0 ; @@ -989,7 +989,7 @@ void ZipFile::recover() try { nLength = aGrabber.getLength(); - if (nLength == 0 || nLength < ENDHDR) + if (nLength < ENDHDR) return; aGrabber.seek( 0 ); |