projects
/
linux-flexiantxendom0-3.2.10.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d989de2
)
[PATCH] zlib merge: return code
author
Jörn Engel <joern@wohnheim.fh-wedel.de>
Sun, 8 Jun 2003 02:51:07 +0000
(19:51 -0700)
committer
Linus Torvalds <torvalds@home.transmeta.com>
Sun, 8 Jun 2003 02:51:07 +0000
(19:51 -0700)
Don't think anyone actually bothers to check specific error codes, but
it shouldn't hurt either.
lib/zlib_inflate/inftrees.c
patch
|
blob
|
history
diff --git
a/lib/zlib_inflate/inftrees.c
b/lib/zlib_inflate/inftrees.c
index
13752e4
..
edae599
100644
(file)
--- a/
lib/zlib_inflate/inftrees.c
+++ b/
lib/zlib_inflate/inftrees.c
@@
-229,7
+229,7
@@
static int huft_build(
/* allocate new table */
if (*hn + z > MANY) /* (note: doesn't matter for fixed) */
- return Z_MEM_ERROR; /* not enough memory */
+ return Z_DATA_ERROR; /* overflow of MANY */
u[h] = q = hp + *hn;
*hn += z;