mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-28 12:57:50 +00:00
iolog_rewrite: initialize struct timing_closure before using.
Coverity CID 249971
This commit is contained in:
parent
79d8500347
commit
2315c0b3bb
@ -763,6 +763,9 @@ iolog_rewrite(const struct timespec *target, struct connection_closure *closure)
|
|||||||
bool ret = false;
|
bool ret = false;
|
||||||
debug_decl(iolog_rewrite, SUDO_DEBUG_UTIL);
|
debug_decl(iolog_rewrite, SUDO_DEBUG_UTIL);
|
||||||
|
|
||||||
|
memset(&timing, 0, sizeof(timing));
|
||||||
|
timing.decimal = ".";
|
||||||
|
|
||||||
/* Parse timing file until we reach the target point. */
|
/* Parse timing file until we reach the target point. */
|
||||||
/* TODO: use iolog_seekto with a callback? */
|
/* TODO: use iolog_seekto with a callback? */
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user