]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sched: fix Clang warning
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 10 Sep 2014 14:58:48 +0000 (16:58 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 10 Sep 2014 15:00:50 +0000 (17:00 +0200)
sched.c

diff --git a/sched.c b/sched.c
index 49cf9a987e7f9dfca60db4898fe7414ae4d7a756..7f3fd78702833e9531c1936983e86c008c9e3246 100644 (file)
--- a/sched.c
+++ b/sched.c
@@ -618,6 +618,8 @@ SCH_MainLoop(void)
 
     } else {
       ptv = NULL;
+      /* This is needed to fix a compiler warning */
+      saved_tv.tv_sec = 0;
     }
 
     /* if there are no file descriptors being waited on and no