bus: add comment to explain assert
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 Jul 2018 10:23:59 +0000 (12:23 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 18 Jul 2018 14:36:37 +0000 (16:36 +0200)
src/libsystemd/sd-bus/sd-bus.c

index 689cbf7..7787caa 100644 (file)
@@ -2897,7 +2897,7 @@ static int bus_process_internal(sd_bus *bus, bool hint_priority, int64_t priorit
 
         /* We don't allow recursively invoking sd_bus_process(). */
         assert_return(!bus->current_message, -EBUSY);
-        assert(!bus->current_slot);
+        assert(!bus->current_slot); /* This should be NULL whenever bus->current_message is */
 
         BUS_DONT_DESTROY(bus);