summaryrefslogtreecommitdiff
path: root/backend/epub
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2020-04-15 05:33:24 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-04-15 17:25:45 +0200
commit1f3566651994ead4813dc3253f65ec8a523ecf35 (patch)
tree2e406970577bef1e621d027718424149929a79ed /backend/epub
parent8170ddddafadbd2268de83872536eb8c385cfa6a (diff)
downloadatril-1f3566651994ead4813dc3253f65ec8a523ecf35.tar.bz2
atril-1f3566651994ead4813dc3253f65ec8a523ecf35.tar.xz
Fix cppcheck [knownConditionTrueFalse] warnings
Fixes the warnings: backend/comics/comics-document.c:767:21: style: Condition 'bytes<=0' is always true [knownConditionTrueFalse] backend/epub/minizip/unzip.c:603:25: style: Condition 'unz_copyright[0]!=' '' is always false [knownConditionTrueFalse] properties/ev-properties-view.c:197:33: style: Condition 'text' is always true [knownConditionTrueFalse] shell/ev-sidebar-thumbnails.c:598:7: style: Condition '!loading_icon' is always true [knownConditionTrueFalse] shell/main.c:115:6: style: Condition '!error' is always true [knownConditionTrueFalse]
Diffstat (limited to 'backend/epub')
-rw-r--r--backend/epub/minizip/unzip.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/backend/epub/minizip/unzip.c b/backend/epub/minizip/unzip.c
index 90935043..2ed54a11 100644
--- a/backend/epub/minizip/unzip.c
+++ b/backend/epub/minizip/unzip.c
@@ -119,9 +119,6 @@
#define SIZEZIPLOCALHEADER (0x1e)
-const char unz_copyright[] =
- " unzip 1.01 Copyright 1998-2004 Gilles Vollant - http://www.winimage.com/zLibDll";
-
/* unz_file_info_interntal contain internal info about a file in zipfile*/
typedef struct unz_file_info64_internal_s
{
@@ -600,9 +597,6 @@ local unzFile unzOpenInternal (const void *path,
int err=UNZ_OK;
- if (unz_copyright[0]!=' ')
- return NULL;
-
us.z_filefunc.zseek32_file = NULL;
us.z_filefunc.ztell32_file = NULL;
if (pzlib_filefunc64_32_def==NULL)