zlib: fix uninitialized variable compiler warning

pull/24503/head
Ben Noordhuis 2012-03-31 23:50:02 +00:00
parent a4a04f932e
commit 7bdeed2039
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class ZCtx : public ObjectWrap {
// If the avail_out is left at 0, then it means that it ran out // 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 // of room. If there was avail_out left over, then it means
// that all of the input was consumed. // that all of the input was consumed.
int err; int err = Z_STREAM_ERROR;
switch (ctx->mode_) { switch (ctx->mode_) {
case DEFLATE: case DEFLATE:
case GZIP: case GZIP: