summaryrefslogtreecommitdiff
path: root/lib/libz
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2005-07-06 14:00:52 +0000
committerColin Percival <cperciva@FreeBSD.org>2005-07-06 14:00:52 +0000
commit8d284299a9f34dc6adefe6ea2042fd5891b1a270 (patch)
treeb2e43cd1c949886055cf9e016eabc00f76b25d3b /lib/libz
parentbc5627d91f8cce793deecb3472b8fa27e9b335cd (diff)
Notes
Diffstat (limited to 'lib/libz')
-rw-r--r--lib/libz/inftrees.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libz/inftrees.c b/lib/libz/inftrees.c
index 8a896b287934..509461d92734 100644
--- a/lib/libz/inftrees.c
+++ b/lib/libz/inftrees.c
@@ -134,7 +134,7 @@ unsigned short FAR *work;
left -= count[len];
if (left < 0) return -1; /* over-subscribed */
}
- if (left > 0 && (type == CODES || (codes - count[0] != 1)))
+ if (left > 0 && (type == CODES || max != 1))
return -1; /* incomplete set */
/* generate offsets into symbol table for each length for sorting */