sched: initialize sub-second part of saved_tv in SCH_MainLoop()

This is needed since commit d0dfa1de9e to
avoid valgrind errors.
This commit is contained in:
Miroslav Lichvar 2016-09-07 11:49:36 +02:00
parent c08e7e716d
commit 1afb285aad

View file

@ -707,8 +707,7 @@ SCH_MainLoop(void)
saved_tv = tv;
} else {
ptv = NULL;
/* This is needed to fix a compiler warning */
saved_tv.tv_sec = 0;
saved_tv.tv_sec = saved_tv.tv_usec = 0;
}
p_read_fds = &read_fds;