Skip to content

Commit

Permalink
zlib: fix Failed to set dictionary issue
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Jan 25, 2012
1 parent 27c8572 commit c80abfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_zlib.cc
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit c80abfa

Please sign in to comment.