]> git.ipfire.org Git - thirdparty/systemd.git/commit
job: properly initialize all enum fields
authorLennart Poettering <lennart@amutable.com>
Fri, 24 Apr 2026 13:19:06 +0000 (15:19 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 24 Apr 2026 15:38:33 +0000 (16:38 +0100)
commit143126cbcd1511dec8e241ca47f48bdf20a0f3dd
treec734efd178d8a31d29fbfe277238ca5e315a2e4b
parent59e78701ecb4039f42f5e77692af97e498118479
job: properly initialize all enum fields

This changes the .result field to invalid initially, which arguably
makes more sense than "done", which was previously the default.

This is a correctnes fix, and afaics has no effect on the API, since we
do not expose this 1:1 as D-Bus property: it's only seen on D-Bus as
part of the job completion signal, at which part it is correctly
initialized.

Noticed while reviewing: https://github.com/systemd/systemd/pull/41583
src/core/job.c
src/core/job.h