diff --git a/rpm2cpio.c b/rpm2cpio.c index c82d38c..60f6014 100644 --- a/rpm2cpio.c +++ b/rpm2cpio.c @@ -63,9 +63,11 @@ int main(int argc, char **argv) rc = ufdCopy(gzdi, fdo); rc = (rc <= 0) ? EXIT_FAILURE : EXIT_SUCCESS; - Fclose(fdo); + if (Fclose(fdo) < 0) + rc = EXIT_FAILURE; - Fclose(gzdi); /* XXX gzdi == fdi */ + if (Fclose(gzdi) < 0) /* XXX gzdi == fdi */ + rc = EXIT_FAILURE; return rc; }