summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rpmio/rpmio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c
index 9711cff74..8b90d7226 100644
--- a/rpmio/rpmio.c
+++ b/rpmio/rpmio.c
@@ -1633,7 +1633,7 @@ DBGIO(fd, (stderr, "==> Fclose(%p) %s\n", (fd ? fd : NULL), fdbg(fd)));
}
} else {
fdio_close_function_t _close = FDIOVEC(fd, close);
- rc = _close(fd);
+ rc = _close ? _close(fd) : -2;
}
if (fd->nfps == 0)
break;