valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0417-core-fix-assertion-check.patch

803fb7
From efd1250249494b7501578da7de7830659b65c98b Mon Sep 17 00:00:00 2001
803fb7
From: Lennart Poettering <lennart@poettering.net>
803fb7
Date: Tue, 16 Feb 2016 13:18:36 +0100
803fb7
Subject: [PATCH] core: fix assertion check
803fb7
803fb7
Fixes: #2632
803fb7
803fb7
Cherry-picked from: 3f51aec8647fe13f4b1e46b2f75ff635403adf91
803fb7
Resolves: #1396312
803fb7
---
803fb7
 src/core/timer.c | 2 +-
803fb7
 1 file changed, 1 insertion(+), 1 deletion(-)
803fb7
803fb7
diff --git a/src/core/timer.c b/src/core/timer.c
803fb7
index 972dd73df..f318dc6f4 100644
803fb7
--- a/src/core/timer.c
803fb7
+++ b/src/core/timer.c
803fb7
@@ -321,7 +321,7 @@ static void add_random(Timer *t, usec_t *v) {
803fb7
         usec_t add;
803fb7
 
803fb7
         assert(t);
803fb7
-        assert(*v);
803fb7
+        assert(v);
803fb7
 
803fb7
         if (t->random_usec == 0)
803fb7
                 return;