summaryrefslogtreecommitdiff
path: root/src/core/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-17 01:21:19 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-22 16:30:24 +0200
commited0d40229bc536c424fad481e56afcaa1d0e38db (patch)
treeb0d311194508bf75059da687169f139706364d9d /src/core/manager.c
parentf6d9c616b6cccd561fa1db5f58106cbd534b9e34 (diff)
util: add safe_closedir() similar to safe_fclose()
Diffstat (limited to 'src/core/manager.c')
-rw-r--r--src/core/manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index 4e672a8c48..1c1763c902 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -1071,8 +1071,7 @@ static void manager_build_unit_path_cache(Manager *m) {
goto fail;
}
- closedir(d);
- d = NULL;
+ d = safe_closedir(d);
}
return;