[coreboot] [v2] r4173 - trunk/coreboot-v2/util/nrv2b
svn at coreboot.org
svn at coreboot.org
Wed Apr 22 14:14:39 CEST 2009
Author: stepan
Date: 2009-04-22 14:14:39 +0200 (Wed, 22 Apr 2009)
New Revision: 4173
Modified:
trunk/coreboot-v2/util/nrv2b/nrv2b.c
Log:
don't ignore return values (trivial)
Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>
Modified: trunk/coreboot-v2/util/nrv2b/nrv2b.c
===================================================================
--- trunk/coreboot-v2/util/nrv2b/nrv2b.c 2009-04-22 12:00:17 UTC (rev 4172)
+++ trunk/coreboot-v2/util/nrv2b/nrv2b.c 2009-04-22 12:14:39 UTC (rev 4173)
@@ -1265,6 +1265,9 @@
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)
More information about the coreboot
mailing list