X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fcore%2Fdbus-timer.c;h=1fa19966c894cbb994d8b4cdbeb9556da6ba1356;hb=1cc6c93a9569a9f2664d0d26cd0e50408307c430;hp=1eedf217fe2c8b7d60ccc3d3a4a637be1392342d;hpb=3d282fff063c81893dc4bbd0282193d20dd5357e;p=thirdparty%2Fsystemd.git diff --git a/src/core/dbus-timer.c b/src/core/dbus-timer.c index 1eedf217fe2..1fa19966c89 100644 --- a/src/core/dbus-timer.c +++ b/src/core/dbus-timer.c @@ -290,8 +290,7 @@ static int bus_timer_set_transient_property( return -ENOMEM; v->base = b; - v->calendar_spec = c; - c = NULL; + v->calendar_spec = TAKE_PTR(c); LIST_PREPEND(value, t->values, v); } @@ -377,8 +376,7 @@ static int bus_timer_set_transient_property( return -ENOMEM; v->base = TIMER_CALENDAR; - v->calendar_spec = c; - c = NULL; + v->calendar_spec = TAKE_PTR(c); LIST_PREPEND(value, t->values, v); }