aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/testing/zcgunzip.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/google/protobuf/testing/zcgunzip.cc')
-rw-r--r--src/google/protobuf/testing/zcgunzip.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/google/protobuf/testing/zcgunzip.cc b/src/google/protobuf/testing/zcgunzip.cc
index 76f8cfe1..349ad86e 100644
--- a/src/google/protobuf/testing/zcgunzip.cc
+++ b/src/google/protobuf/testing/zcgunzip.cc
@@ -72,7 +72,10 @@ int main(int argc, const char** argv) {
}
if (inlen > 0) {
int err = write(STDOUT_FILENO, inptr, inlen);
- assert(err == inlen);
+ if (err != inlen) {
+ fprintf(stderr, "write unexpectedly returned %d.\n", err);
+ return 1;
+ }
}
}