diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-17 01:21:19 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-22 16:30:24 +0200 |
commit | ed0d40229bc536c424fad481e56afcaa1d0e38db (patch) | |
tree | b0d311194508bf75059da687169f139706364d9d /src/core | |
parent | f6d9c616b6cccd561fa1db5f58106cbd534b9e34 (diff) |
util: add safe_closedir() similar to safe_fclose()
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/manager.c | 3 |
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; |