summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnita Zhang <the.anitazha@gmail.com>2019-08-21 23:03:16 -0700
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-08-22 11:02:56 +0200
commit23f8fbb303f1073cd1e6b93d490ea43d03ca6823 (patch)
tree4d515564af2ca661fbd2100a4ebcd635388aa63c
parent1262ecb983ca03f02f6a9f49c86715e7018328bb (diff)
downloadsystemd-23f8fbb303f1073cd1e6b93d490ea43d03ca6823.tar.gz
core: TAKE_PTR in timer_add_one_calendar_spec
Introduced in d00a52c Fixes #13373
-rw-r--r--src/core/dbus-timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dbus-timer.c b/src/core/dbus-timer.c
index 2f61a5842d..439c276fac 100644
--- a/src/core/dbus-timer.c
+++ b/src/core/dbus-timer.c
@@ -196,7 +196,7 @@ static int timer_add_one_calendar_spec(
*v = (TimerValue) {
.base = base,
- .calendar_spec = c,
+ .calendar_spec = TAKE_PTR(c),
};
LIST_PREPEND(value, t->values, v);