2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

iolog_rewrite: initialize struct timing_closure before using.

Coverity CID 249971
This commit is contained in:
Todd C. Miller 2022-02-23 20:17:58 -07:00
parent 79d8500347
commit 2315c0b3bb

View File

@ -763,6 +763,9 @@ iolog_rewrite(const struct timespec *target, struct connection_closure *closure)
bool ret = false;
debug_decl(iolog_rewrite, SUDO_DEBUG_UTIL);
memset(&timing, 0, sizeof(timing));
timing.decimal = ".";
/* Parse timing file until we reach the target point. */
/* TODO: use iolog_seekto with a callback? */
for (;;) {