diff --git a/src/node_zlib.cc b/src/node_zlib.cc index b8ad339800..808ceb0bae 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -322,7 +322,7 @@ template 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 class ZCtx : public ObjectWrap { } static void Reset(ZCtx* ctx) { - int err; + int err = Z_OK; switch (mode) { case DEFLATE: