diff options
author | David Tardon <dtardon@redhat.com> | 2022-08-09 14:35:15 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2022-09-13 08:13:27 +0200 |
commit | 995340074e554b4bf4a0fdb0cb7436692c5a4ffd (patch) | |
tree | ca3ee001db3e608ee80478f42fea9c3b409f1b7b /src/shared/bus-util.c | |
parent | Merge pull request #23087 from yuwata/udev-watch (diff) | |
download | systemd-995340074e554b4bf4a0fdb0cb7436692c5a4ffd.tar.xz systemd-995340074e554b4bf4a0fdb0cb7436692c5a4ffd.zip |
tree-wide: use ASSERT_PTR more
Diffstat (limited to 'src/shared/bus-util.c')
-rw-r--r-- | src/shared/bus-util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index e12f95d4b1..d09ec5148d 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -23,10 +23,9 @@ #include "stdio-util.h" static int name_owner_change_callback(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) { - sd_event *e = userdata; + sd_event *e = ASSERT_PTR(userdata); assert(m); - assert(e); sd_bus_close(sd_bus_message_get_bus(m)); sd_event_exit(e, 0); |