From 4004a26717285efcfe64395cf87d5e7eb5f75531 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Sun, 17 Nov 2013 17:10:09 +0100 Subject: [PATCH 1/3] Remove unused assignments in Hints.cc --- poppler/Hints.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/poppler/Hints.cc b/poppler/Hints.cc index 49e201d..cd8781c 100644 --- a/poppler/Hints.cc +++ b/poppler/Hints.cc @@ -278,12 +278,10 @@ void Hints::readSharedObjectsTable(Stream *str) if ((!nSharedGroups) || (nSharedGroups >= INT_MAX / (int)sizeof(Guint))) { error(errSyntaxWarning, -1, "Invalid number of shared object groups"); - nSharedGroups = 0; return; } if ((!nSharedGroupsFirst) || (nSharedGroupsFirst > nSharedGroups)) { error(errSyntaxWarning, -1, "Invalid number of first page shared object groups"); - nSharedGroups = 0; return; } @@ -295,7 +293,6 @@ void Hints::readSharedObjectsTable(Stream *str) if (!groupLength || !groupOffset || !groupHasSignature || !groupNumObjects || !groupXRefOffset) { error(errSyntaxWarning, -1, "Failed to allocate memory for shared object groups"); - nSharedGroups = 0; return; } -- 1.8.1.2