From: Theodore Ts'o Date: Sat, 25 Mar 2006 06:42:02 +0000 (-0500) Subject: Fix typo bug in previous commit (6ae1ed49c8c6) X-Git-Tag: E2FSPROGS-1.39-WIP-0330~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=292811f2aaa39c3f1ee2cbb56fe2b586f8337946;p=thirdparty%2Fe2fsprogs.git Fix typo bug in previous commit (6ae1ed49c8c6) "fd" should have been "probe.fd" so blkid/probe.c can compile without errors. Signed-off-by: "Theodore Ts'o" --- diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c index 3ce1e4ca0..dcc6a6e4f 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; }