diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2012-01-25 21:35:35 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2012-01-25 21:35:35 +0400 |
commit | c80abfa0e4b5ae234e53a2fc088eb8344a182820 (patch) | |
tree | 3c6d83a7b56906d86906818d732a2219b3d965d5 /src | |
parent | 27c85727edda169cbe9c04178c6fdee642cb8845 (diff) |
zlib: fix `Failed to set dictionary` issue
Diffstat (limited to 'src')
-rw-r--r-- | src/node_zlib.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc index b8ad3398008..808ceb0bae8 100644 --- a/src/node_zlib.cc +++ b/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: |