From 7bdeed203991d35a56e7448540e3b74387c65d0d Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 31 Mar 2012 23:50:02 +0000 Subject: [PATCH] zlib: fix uninitialized variable compiler warning --- src/node_zlib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_zlib.cc b/src/node_zlib.cc index 3567139..83d57a3 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: -- 2.7.4