]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/journal/journal-file.c
tree-wide: use TAKE_PTR() and TAKE_FD() macros
[thirdparty/systemd.git] / src / journal / journal-file.c
index eab78074b58de9dff80b20ed89e573c4d1bf8fe4..3ea44128b10bea8644a3c9bba71f76c8db94f11f 100644 (file)
@@ -1939,8 +1939,7 @@ int journal_file_enable_post_change_timer(JournalFile *f, sd_event *e, usec_t t)
         if (r < 0)
                 return r;
 
-        f->post_change_timer = timer;
-        timer = NULL;
+        f->post_change_timer = TAKE_PTR(timer);
         f->post_change_timer_period = t;
 
         return r;