check inflateInit2 return value
do not zero out memory that will be overwritten anyway
remove unused variable
fix missing check for October