diff --git a/test/cctest/test_inspector_socket.cc b/test/cctest/test_inspector_socket.cc index 3b927bdc2c7252..20469b90c4dcb2 100644 --- a/test/cctest/test_inspector_socket.cc +++ b/test/cctest/test_inspector_socket.cc @@ -248,7 +248,8 @@ static void setup_inspector_expecting() { if (inspector.data) { return; } - expectations* expects = new expectations(); + // ({}) is needed because VS2013 does not zero the struct with () + expectations* expects = new expectations({}); inspector.data = expects; inspector_read_start(&inspector, grow_expects_buffer, save_read_data); }