The usage of NULL in compress.c as introduced in commit 5c47755 seems error prone. There is no include for defining NULL on all platforms, on certain platforms (i.e., linux etc) the use of #include <stddef.h> in the check to define z_size_t in zconf.h has the side effect of defining NULL. However this is not the case on all platforms (see rust-lang/libz-sys#259 for example)
This should perhaps be replaced with Z_NULL?
The usage of
NULLincompress.cas introduced in commit 5c47755 seems error prone. There is no include for defining NULL on all platforms, on certain platforms (i.e., linux etc) the use of#include <stddef.h>in the check to definez_size_tinzconf.hhas the side effect of definingNULL. However this is not the case on all platforms (see rust-lang/libz-sys#259 for example)This should perhaps be replaced with
Z_NULL?