Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

zlib: fix `Failed to set dictionary` issue

  • Loading branch information...
indutny committed Jan 25, 2012
1 parent 27c8572 commit c80abfa0e4b5ae234e53a2fc088eb8344a182820
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/node_zlib.cc
@@ -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:

0 comments on commit c80abfa

Please sign in to comment.
You can’t perform that action at this time.