We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Failed to set dictionary
1 parent 27c8572 commit c80abfaCopy full SHA for c80abfa
src/node_zlib.cc
@@ -322,7 +322,7 @@ template <node_zlib_mode mode> class ZCtx : public ObjectWrap {
322
static void SetDictionary(ZCtx* ctx) {
323
if (ctx->dictionary_ == NULL) return;
324
325
- int err;
+ int err = Z_OK;
326
327
switch (mode) {
328
case DEFLATE:
@@ -339,7 +339,7 @@ template <node_zlib_mode mode> class ZCtx : public ObjectWrap {
339
}
340
341
static void Reset(ZCtx* ctx) {
342
343
344
345
0 commit comments