]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/dbus-manager: add missing assertion
authorMike Yuan <me@yhndnzj.com>
Sun, 14 Apr 2024 15:21:13 +0000 (23:21 +0800)
committerMike Yuan <me@yhndnzj.com>
Sun, 14 Apr 2024 15:22:13 +0000 (23:22 +0800)
src/core/dbus-manager.c

index fa85a5e6980be5e1f4b5497bd56d7a94998af8ca..59a7f2bd356843e55f218453eac071af8c299cc6 100644 (file)
@@ -772,6 +772,7 @@ static int method_generic_unit_operation(
 
         assert(message);
         assert(m);
+        assert(handler);
 
         /* Read the first argument from the command and pass the operation to the specified per-unit
          * method. */