]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/install: rework InstallChange to always have .path set
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 22 Jan 2023 17:20:22 +0000 (18:20 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 22 Jan 2023 17:25:56 +0000 (18:25 +0100)
commit4a4af850b3551aff9bc39e5af5ccf3b876fc50ed
treed2ab2939f2a51b6704ed629f303710528b58c1dd
parent7100653885df1bfe47efbde8393f5f1fd48866d9
shared/install: rework InstallChange to always have .path set

We would set .path in all cases except INSTALL_CHANGE_AUXILIARY_FAILED, where
we would just just .source. This special case is just not worth it, because
we can't easily assert that .path is set. Let's remove this special case to
help the compiler know that .path is actually set.

Avoids a warning with gcc-13.0.1-0.1.fc38.x86_64.
src/shared/install.c