| commit | 4b13704cbec7249ba223608143026142b8729318 | [log] [tgz] |
|---|---|---|
| author | Matthias Andree <matthias.andree@gmx.de> | Thu Jan 13 03:35:29 2005 +0100 |
| committer | Matthias Andree <matthias.andree@gmx.de> | Thu Jan 13 03:35:29 2005 +0100 |
| tree | de766b2f971f8d149b3e36334e77eacfc2eae0f7 | |
| parent | d34588265c6fb68189090070be470725df3e8c48 [diff] [blame] |
Fix crash when /proc/acpi/ac_adapter/ is not present, for instance, on pre-ACPI and non-Linux systems.
diff --git a/e2fsck/unix.c b/e2fsck/unix.c index 7e55f87..43a64b5 100644 --- a/e2fsck/unix.c +++ b/e2fsck/unix.c
@@ -238,7 +238,8 @@ return 1; } } - closedir(d); + if (d) + closedir(d); return 0; }