|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
From 84494c062524f39771cc9363597daa29d5d041b6 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
From: Lennart Poettering <lennart@poettering.net>
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
Date: Tue, 16 Feb 2016 13:18:36 +0100
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
Subject: [PATCH] core: fix assertion check
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
Fixes: #2632
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
(cherry picked from commit 3f51aec8647fe13f4b1e46b2f75ff635403adf91)
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
src/core/timer.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
diff --git a/src/core/timer.c b/src/core/timer.c
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
index 6f3e6a8db3..3d0bae16e5 100644
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
--- a/src/core/timer.c
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
+++ b/src/core/timer.c
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
@@ -334,7 +334,7 @@ static void add_random(Timer *t, usec_t *v) {
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
usec_t add;
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
assert(t);
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
- assert(*v);
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
+ assert(v);
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
if (t->random_usec == 0)
|
|
Zbigniew Jędrzejewski-Szmek |
2b6823 |
return;
|