daandemeyer / rpms / systemd

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