Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2012-01-25 21:35:35 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2012-01-25 21:35:35 +0400
commitc80abfa0e4b5ae234e53a2fc088eb8344a182820 (patch)
tree3c6d83a7b56906d86906818d732a2219b3d965d5 /src
parent27c85727edda169cbe9c04178c6fdee642cb8845 (diff)
zlib: fix `Failed to set dictionary` issue
Diffstat (limited to 'src')
-rw-r--r--src/node_zlib.cc4
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: