aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util/zip/natInflater.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/util/zip/natInflater.cc')
-rw-r--r--libjava/java/util/zip/natInflater.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/java/util/zip/natInflater.cc b/libjava/java/util/zip/natInflater.cc
index 312027a..f3d258c 100644
--- a/libjava/java/util/zip/natInflater.cc
+++ b/libjava/java/util/zip/natInflater.cc
@@ -117,7 +117,8 @@ java::util::zip::Inflater::inflate (jbyteArray buf, jint off, jint len)
break;
case Z_DATA_ERROR:
- _Jv_Throw (new java::util::zip::DataFormatException);
+ _Jv_Throw (new java::util::zip::DataFormatException
+ (s->msg == NULL ? NULL : JvNewStringLatin1 (s->msg)));
break;
case Z_MEM_ERROR: