# HG changeset patch # User Ben Abbott # Date 1297044661 18000 # Node ID 824b3e0ab12a237ba1e69450fe963d490aa5c534 # Parent 735e43b75e456b54ddfbce9a7714a782fa950746 Finish reverting unintended commit left over by 12396-12397. diff -r 735e43b75e45 -r 824b3e0ab12a src/ls-mat5.cc --- a/src/ls-mat5.cc Sun Feb 06 23:59:37 2011 +0100 +++ b/src/ls-mat5.cc Sun Feb 06 21:11:01 2011 -0500 @@ -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 {