diff options
author | Jim Meyering <jim@meyering.net> | 2003-04-13 09:10:50 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-04-13 09:10:50 +0000 |
commit | be897d7f42b93e194a2c441812e4cfbe5f5cf5e0 (patch) | |
tree | 695bcc7671865c12e942aabe972a8d8ee49eaeb4 /src | |
parent | de6a08aca76d4839243e76418baea7b5fedde08e (diff) | |
download | coreutils-be897d7f42b93e194a2c441812e4cfbe5f5cf5e0.tar.xz |
(is_empty_dir): Don't closedir (NULL).
Diffstat (limited to 'src')
-rw-r--r-- | src/remove.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/remove.c b/src/remove.c index 21c5ac0ac..eac7cfa10 100644 --- a/src/remove.c +++ b/src/remove.c @@ -513,10 +513,7 @@ is_empty_dir (char const *dir) { DIR *dirp = opendir (dir); if (dirp == NULL) - { - closedir (dirp); - return false; - } + return false; while (1) { |