summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-06-04 23:05:39 +0200
committerLennart Poettering <lennart@poettering.net>2018-06-07 13:36:19 +0200
commit62b0cbb358a1f48261efbbf0fb6b8fc704645491 (patch)
treeb5311832a71e519ebea7ba0cae2b7ce20f9658f2
parentcore: split out early-boot preset logic into a function of its own (diff)
downloadsystemd-62b0cbb358a1f48261efbbf0fb6b8fc704645491.tar.xz
systemd-62b0cbb358a1f48261efbbf0fb6b8fc704645491.zip
core: use safe_fclose() where appropriate
-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 cc555e259b..a0c404dc9d 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -3380,8 +3380,7 @@ int manager_reload(Manager *m) {
r = q;
}
- fclose(f);
- f = NULL;
+ f = safe_fclose(f);
/* Re-register notify_fd as event source */
q = manager_setup_notify(m);