summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/nrv2b/nrv2b.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/nrv2b/nrv2b.c b/util/nrv2b/nrv2b.c
index e341a7b61d..c8daa4d47f 100644
--- a/util/nrv2b/nrv2b.c
+++ b/util/nrv2b/nrv2b.c
@@ -1265,6 +1265,9 @@ void Encode(void) /* compression */
Error("Can't read");
}
r = ucl_nrv2b_99_compress(in, in_len, out, &out_len, 0 );
+ if (r != UCL_E_OK) {
+ Error("Error during compression.");
+ }
#if UCLPACK_COMPAT
tw = htonl(out_len);
if (fwrite(&tw, sizeof(tw), 1, outfile) != 1)