]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: use assert_se() which takes side-effect
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 12 Apr 2022 14:52:22 +0000 (23:52 +0900)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2022 16:45:20 +0000 (18:45 +0200)
Fixes #23059.

src/core/main.c

index c6e9e9b0342b54d77ed5fc709f761239bfd238a6..438405bda2739b6f9275949fb1f673515195c07b 100644 (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. "