richardphibel / rpms / systemd

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