valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0421-shared-fix-assert-call.patch

4cad4c
From 63b5df7c9fda4f7d44674076da5fc5cef4564f3a Mon Sep 17 00:00:00 2001
4cad4c
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
4cad4c
Date: Wed, 17 Jul 2019 09:39:39 +0200
4cad4c
Subject: [PATCH] shared: fix assert call
4cad4c
4cad4c
Fixup for 3572d3df8f8. Coverity CID#1403013.
4cad4c
4cad4c
(cherry picked from commit 60b17d6fcd988c9995b7d1476d3aba1c4cbbfddd)
4cad4c
4cad4c
Related: #1830861
4cad4c
---
4cad4c
 src/shared/bus-wait-for-units.c | 2 +-
4cad4c
 1 file changed, 1 insertion(+), 1 deletion(-)
4cad4c
4cad4c
diff --git a/src/shared/bus-wait-for-units.c b/src/shared/bus-wait-for-units.c
4cad4c
index d07f491e93..de15da1620 100644
4cad4c
--- a/src/shared/bus-wait-for-units.c
4cad4c
+++ b/src/shared/bus-wait-for-units.c
4cad4c
@@ -190,7 +190,7 @@ static void wait_for_item_check_ready(WaitForItem *item) {
4cad4c
         BusWaitForUnits *d;
4cad4c
 
4cad4c
         assert(item);
4cad4c
-        assert(d = item->parent);
4cad4c
+        assert_se(d = item->parent);
4cad4c
 
4cad4c
         if (FLAGS_SET(item->flags, BUS_WAIT_FOR_MAINTENANCE_END)) {
4cad4c