diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-04-05 14:26:26 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-04-05 14:26:26 +0900 |
commit | 1cc6c93a9569a9f2664d0d26cd0e50408307c430 (patch) | |
tree | 57e115a1beb9b097f731da79c3192015ff35cc94 /src/busctl | |
parent | 3d282fff063c81893dc4bbd0282193d20dd5357e (diff) | |
download | systemd-1cc6c93a9569a9f2664d0d26cd0e50408307c430.tar.gz systemd-1cc6c93a9569a9f2664d0d26cd0e50408307c430.tar.bz2 systemd-1cc6c93a9569a9f2664d0d26cd0e50408307c430.zip |
tree-wide: use TAKE_PTR() and TAKE_FD() macros
Diffstat (limited to 'src/busctl')
-rw-r--r-- | src/busctl/busctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/busctl/busctl.c b/src/busctl/busctl.c index 2f9250e2ae..2ac6a07624 100644 --- a/src/busctl/busctl.c +++ b/src/busctl/busctl.c @@ -137,8 +137,7 @@ static int acquire_bus(bool set_monitor, sd_bus **ret) { if (r < 0) return log_error_errno(r, "Failed to connect to bus: %m"); - *ret = bus; - bus = NULL; + *ret = TAKE_PTR(bus); return 0; } |