diff --git a/src/node_zlib.cc b/src/node_zlib.cc index 3567139e02f..83d57a3a78e 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -142,7 +142,7 @@ class ZCtx : public ObjectWrap { // If the avail_out is left at 0, then it means that it ran out // of room. If there was avail_out left over, then it means // that all of the input was consumed. - int err; + int err = Z_STREAM_ERROR; switch (ctx->mode_) { case DEFLATE: case GZIP: