From 0146ce7c877bbaf09b0bfccd51754dacfd1c52c5 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 26 Jan 2017 11:05:44 +0100 Subject: [PATCH] win: damn it --- src/uvw/process.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/uvw/process.hpp b/src/uvw/process.hpp index eb383d1f..f4cf79a4 100644 --- a/src/uvw/process.hpp +++ b/src/uvw/process.hpp @@ -73,11 +73,10 @@ public: using StdIO = details::UVStdIOFlags; ProcessHandle(ConstructorAccess ca, std::shared_ptr ref) - : Handle{std::move(ca), std::move(ref)} + : Handle{std::move(ca), std::move(ref)}, poFdStdio{1} { - uv_stdio_container_t stdin; - stdin.flags = static_cast(StdIO::IGNORE_STREAM); - poFdStdio.push_back(std::move(stdin)); + // stdin container default initialization + poFdStdio[0].flags = static_cast(StdIO::IGNORE_STREAM); } /**