I noticed an issue when compiling your library using a C compiler. In file python-zstd.c the snippet below will not compile because cctx is not being initialized first.
if (source_size > 0) { //Line 96 dest = PyBytes_AS_STRING(result); ZSTD_CCtx* cctx = ZSTD_createCCtx();
my warkaround to this is as follow:
if (source_size > 0) { ZSTD_CCtx* cctx = 0; dest = PyBytes_AS_STRING(result); cctx = ZSTD_createCCtx();
Hello,
I noticed an issue when compiling your library using a C compiler. In file python-zstd.c the snippet below will not compile because cctx is not being initialized first.
if (source_size > 0) { //Line 96 dest = PyBytes_AS_STRING(result); ZSTD_CCtx* cctx = ZSTD_createCCtx();
my warkaround to this is as follow:
if (source_size > 0) { ZSTD_CCtx* cctx = 0; dest = PyBytes_AS_STRING(result); cctx = ZSTD_createCCtx();
Thanks for all.