projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27c8572
)
zlib: fix `Failed to set dictionary` issue
author
Fedor Indutny
<fedor.indutny@gmail.com>
Wed, 25 Jan 2012 17:35:35 +0000
(23:35 +0600)
committer
Fedor Indutny
<fedor.indutny@gmail.com>
Wed, 25 Jan 2012 17:35:35 +0000
(23:35 +0600)
src/node_zlib.cc
patch
|
blob
|
history
diff --git
a/src/node_zlib.cc
b/src/node_zlib.cc
index
b8ad339
..
808ceb0
100644
(file)
--- 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: