# HG changeset patch # User Ben Abbott # Date 1297044661 18000 # Node ID 75049b56fa35ab1a7c28aa4c3e3f32c884f790f5 # Parent bc945da1289bb099c9d9a943e1a8e1e0257bf1ed Finish reverting unintended commit left over by 12396-12397. diff --git a/src/ls-mat5.cc b/src/ls-mat5.cc --- a/src/ls-mat5.cc +++ b/src/ls-mat5.cc @@ -541,10 +541,11 @@ std::string outbuf (destLen, ' '); // FIXME -- find a way to avoid casting away const here! - int err = uncompress (reinterpret_cast - (const_cast (outbuf.c_str ())), + + int err = uncompress (reinterpret_cast (const_cast (outbuf.c_str ())), &destLen, reinterpret_cast (inbuf), element_length); + if (err != Z_OK) { std::string msg; @@ -585,7 +586,6 @@ error ("load: error uncompressing data element (%s from zlib)", msg.c_str ()); - break; } else {