core: use assert_se() which takes side-effect

Fixes #23059.
This commit is contained in:
Yu Watanabe
2022-04-12 18:45:20 +02:00
committed by Lennart Poettering
parent d89e18cc38
commit 5180394b38
+1 -1
View File
@@ -2051,7 +2051,7 @@ static void log_execution_mode(bool *ret_first_boot) {
}
}
assert(uname(&uts) >= 0);
assert_se(uname(&uts) >= 0);
if (strverscmp_improved(uts.release, KERNEL_BASELINE_VERSION) < 0)
log_warning("Warning! Reported kernel version %s is older than systemd's required baseline kernel version %s. "