]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/unit: check for correct function in vtable
authorMike Yuan <me@yhndnzj.com>
Wed, 17 Jan 2024 09:20:29 +0000 (17:20 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 17 Jan 2024 11:54:06 +0000 (11:54 +0000)
Prompted by https://github.com/systemd/systemd/pull/30974/commits/61e44e01325eca50e88fc9cd400ee340081e9134

src/core/unit.c

index 011261a7fcaa92840785d1a7089ab7d2a9c8efc2..663e7e17379ddc1d9f2415d7b9d19e376f508aec 100644 (file)
@@ -6539,7 +6539,7 @@ int activation_details_append_pair(ActivationDetails *details, char ***strv) {
                         return r;
         }
 
-        if (ACTIVATION_DETAILS_VTABLE(details)->append_env) {
+        if (ACTIVATION_DETAILS_VTABLE(details)->append_pair) {
                 r = ACTIVATION_DETAILS_VTABLE(details)->append_pair(details, strv);
                 if (r < 0)
                         return r;