Skip to content

Commit

Permalink
wesnothd, campaignd: Fix warning about uninitialized field on _WIN32
Browse files Browse the repository at this point in the history
(cherry-picked from commit 8a90513)
  • Loading branch information
irydacea committed Oct 7, 2018
1 parent 602a914 commit a8fda1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/send_receive_wml_helpers.ipp
Expand Up @@ -249,7 +249,7 @@ void async_send_file(socket_ptr socket, const std::string& filename, Handler han
throw std::runtime_error("Failed to open the file");
}

sendfile_op<Handler, ErrorHandler> op = { socket, in_file, OVERLAPPED(), handler, error_handler, false };
sendfile_op<Handler, ErrorHandler> op = { socket, in_file, OVERLAPPED(), handler, error_handler, false, nullptr };

HANDLE event = CreateEvent(nullptr, TRUE, TRUE, nullptr);
if (GetLastError() != ERROR_SUCCESS)
Expand Down

0 comments on commit a8fda1e

Please sign in to comment.