1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-06 13:17:44 +03:00

core/unit: check for correct function in vtable

Prompted by 61e44e0132

(cherry picked from commit 18cf8411b7)
(cherry picked from commit 891be0c2e7)
(cherry picked from commit a03d5728cb)
This commit is contained in:
Mike Yuan 2024-01-17 17:20:29 +08:00 committed by Luca Boccassi
parent 98d254fb35
commit 24e26cad23

View File

@ -6132,7 +6132,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;