[PATCH] zlib merge: return code
authorJörn Engel <joern@wohnheim.fh-wedel.de>
Sun, 8 Jun 2003 02:51:07 +0000 (19:51 -0700)
committerLinus 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

index 13752e4..edae599 100644 (file)
@@ -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;