changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/libflate/deflate.c

revision 6249: 31534fbb8616
parent 5048: e16a172bcae6
     1.1--- a/sys/src/libflate/deflate.c
     1.2+++ b/sys/src/libflate/deflate.c
     1.3@@ -1063,6 +1063,11 @@ mkgzprecode(Huff *tab, ulong *count, int
     1.4 	}
     1.5 	if(bitcount[0] != 0)
     1.6 		return 0;
     1.7+	if(nbits == 0){
     1.8+		bitcount[1] = 1;
     1.9+		nbits = 1;
    1.10+		tab[0].bits = 1;
    1.11+	}
    1.12 	return hufftabinit(tab, n, bitcount, nbits);
    1.13 }
    1.14