Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

zlib: fix `Failed to set dictionary` issue

  • Loading branch information...
commit c80abfa0e4b5ae234e53a2fc088eb8344a182820 1 parent 27c8572
Fedor Indutny indutny authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/node_zlib.cc
4 src/node_zlib.cc
View
@@ -322,7 +322,7 @@ template <node_zlib_mode mode> class ZCtx : public ObjectWrap {
static void SetDictionary(ZCtx* ctx) {
if (ctx->dictionary_ == NULL) return;
- int err;
+ int err = Z_OK;
switch (mode) {
case DEFLATE:
@@ -339,7 +339,7 @@ template <node_zlib_mode mode> class ZCtx : public ObjectWrap {
}
static void Reset(ZCtx* ctx) {
- int err;
+ int err = Z_OK;
switch (mode) {
case DEFLATE:
Please sign in to comment.
Something went wrong with that request. Please try again.