anitazha / rpms / systemd

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