zlib: fix Failed to set dictionary
issue
This commit is contained in:
parent
27c85727ed
commit
c80abfa0e4
@ -322,7 +322,7 @@ template <node_zlib_mode mode> class ZCtx : public ObjectWrap {
|
|||||||
static void SetDictionary(ZCtx* ctx) {
|
static void SetDictionary(ZCtx* ctx) {
|
||||||
if (ctx->dictionary_ == NULL) return;
|
if (ctx->dictionary_ == NULL) return;
|
||||||
|
|
||||||
int err;
|
int err = Z_OK;
|
||||||
|
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case DEFLATE:
|
case DEFLATE:
|
||||||
@ -339,7 +339,7 @@ template <node_zlib_mode mode> class ZCtx : public ObjectWrap {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void Reset(ZCtx* ctx) {
|
static void Reset(ZCtx* ctx) {
|
||||||
int err;
|
int err = Z_OK;
|
||||||
|
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case DEFLATE:
|
case DEFLATE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user