daandemeyer / rpms / systemd

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