summaryrefslogtreecommitdiff
path: root/util/nrv2b
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-04-22 12:14:39 +0000
committerStefan Reinauer <stepan@openbios.org>2009-04-22 12:14:39 +0000
commit0408bdd240e05ff41e24a1b9aa3f0e83f983f785 (patch)
tree56bfc82394d8cae4c9f50e6d7db4b98ba90dc5cd /util/nrv2b
parent570933cad80fbfed7939b460139dfe43fe24ca2d (diff)
downloadcoreboot-0408bdd240e05ff41e24a1b9aa3f0e83f983f785.tar.xz
don't ignore return values (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4173 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/nrv2b')
-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)