naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
a19bc6
From efd1250249494b7501578da7de7830659b65c98b 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
c62b8e
index 972dd73dfb..f318dc6f44 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;