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 <[email protected]>
Acked-by: Stefan Reinauer <[email protected]>



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)


-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to