From 995340074e554b4bf4a0fdb0cb7436692c5a4ffd Mon Sep 17 00:00:00 2001 From: David Tardon Date: Tue, 9 Aug 2022 14:35:15 +0200 Subject: tree-wide: use ASSERT_PTR more --- src/shared/bus-util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/shared/bus-util.c') 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); -- cgit v1.2.3