"fd" should have been "probe.fd" so blkid/probe.c can compile without
errors.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
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;
}
if (!dev->bid_type) {
- if (probe.fd >= 0) close(fd);
+ if (probe.fd >= 0) close(probe.fd);
blkid_free_dev(dev);
return NULL;
}