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:
parent
c08e7e716d
commit
1afb285aad
1 changed files with 1 additions and 2 deletions
3
sched.c
3
sched.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue