mirror of
https://github.com/systemd/systemd.git
synced 2024-12-12 11:44:13 +08:00
shared/install: rework an assert to appease gcc-13
With the previous form, gcc is confused and thinks that .type might be unset. Fixes #26118.
This commit is contained in:
parent
4a4af850b3
commit
8f5d716a71
@ -342,7 +342,8 @@ void install_changes_dump(int r, const char *verb, const InstallChange *changes,
|
||||
assert(verb || r >= 0);
|
||||
|
||||
for (size_t i = 0; i < n_changes; i++) {
|
||||
assert(verb || changes[i].type >= 0);
|
||||
if (changes[i].type < 0)
|
||||
assert(verb);
|
||||
assert(changes[i].path);
|
||||
|
||||
/* When making changes here, make sure to also change install_error() in dbus-manager.c. */
|
||||
|
Loading…
Reference in New Issue
Block a user