From: Ben Noordhuis Date: Sat, 31 Mar 2012 23:50:02 +0000 (+0000) Subject: zlib: fix uninitialized variable compiler warning X-Git-Tag: v0.7.8~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7bdeed203991d35a56e7448540e3b74387c65d0d;p=platform%2Fupstream%2Fnodejs.git zlib: fix uninitialized variable compiler warning --- 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: