summaryrefslogtreecommitdiffstats
path: root/src/coredump/coredump-vacuum.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-04-05 07:26:26 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-04-05 07:26:26 +0200
commit1cc6c93a9569a9f2664d0d26cd0e50408307c430 (patch)
tree57e115a1beb9b097f731da79c3192015ff35cc94 /src/coredump/coredump-vacuum.c
parentnetwork: fix typo in log message (diff)
downloadsystemd-1cc6c93a9569a9f2664d0d26cd0e50408307c430.tar.xz
systemd-1cc6c93a9569a9f2664d0d26cd0e50408307c430.zip
tree-wide: use TAKE_PTR() and TAKE_FD() macros
Diffstat (limited to 'src/coredump/coredump-vacuum.c')
-rw-r--r--src/coredump/coredump-vacuum.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/coredump/coredump-vacuum.c b/src/coredump/coredump-vacuum.c
index e27512167c..d7ecf85bbf 100644
--- a/src/coredump/coredump-vacuum.c
+++ b/src/coredump/coredump-vacuum.c
@@ -227,8 +227,7 @@ int coredump_vacuum(int exclude_fd, uint64_t keep_free, uint64_t max_use) {
if (r < 0)
return log_oom();
- c = n;
- n = NULL;
+ c = TAKE_PTR(n);
}
c->n_files++;