summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/blkid/probe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c
index 3ce1e4ca..dcc6a6e4 100644
--- a/lib/blkid/probe.c
+++ b/lib/blkid/probe.c
@@ -770,7 +770,7 @@ blkid_dev blkid_verify(blkid_cache cache, blkid_dev dev)
if (((probe.fd = open(dev->bid_name, O_RDONLY)) < 0) ||
(fstat(probe.fd, &st) < 0)) {
- if (probe.fd >= 0) close(fd);
+ if (probe.fd >= 0) close(probe.fd);
if (errno == ENXIO || errno == ENODEV || errno == ENOENT) {
blkid_free_dev(dev);
return NULL;
@@ -838,7 +838,7 @@ try_again:
}
if (!dev->bid_type) {
- if (probe.fd >= 0) close(fd);
+ if (probe.fd >= 0) close(probe.fd);
blkid_free_dev(dev);
return NULL;
}