minor correction

remove warnings from zlib
handle all-zero input