]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pull-oci: switch assert() to assert_se() for set_remove() call
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 9 Jul 2026 13:44:22 +0000 (14:44 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 14 Jul 2026 15:57:14 +0000 (16:57 +0100)
This has obvious side effects so switch it over

Follow-up for a9f6ba04969d6eb2e629e30299fab7538ef42a57

src/import/pull-oci.c

index c2d9bfeddf441b8b3acabac447f2e23e58af543d..5df55e427835fddac5c2750ff817aaff697a8fc9 100644 (file)
@@ -1293,7 +1293,7 @@ static void oci_pull_job_on_finished_layer(PullJob *j) {
                 goto finish;
         }
 
-        assert(set_remove(i->active_layer_jobs, j) == j);
+        assert_se(set_remove(i->active_layer_jobs, j) == j);
 
         r = oci_pull_work(i);
         if (r <= 0)