From 47c88c433d17948fab1d8e1d76121a72fe5938cb Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 7 Sep 2022 14:49:22 -0400 Subject: add upstream 11.24 --- zen/process_exec.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'zen/process_exec.cpp') diff --git a/zen/process_exec.cpp b/zen/process_exec.cpp index 6b670508..df41a627 100644 --- a/zen/process_exec.cpp +++ b/zen/process_exec.cpp @@ -176,8 +176,7 @@ std::pair processExecuteImpl(const Zstring& file const auto waitTimeMs = std::chrono::duration_cast(endTime - now).count(); - timeval tv = {}; - tv.tv_sec = static_cast(waitTimeMs / 1000); + timeval tv{.tv_sec = static_cast(waitTimeMs / 1000)}; tv.tv_usec = static_cast(waitTimeMs - tv.tv_sec * 1000) * 1000; fd_set rfd = {}; //includes FD_ZERO -- cgit