Skip to content

Commit

Permalink
Fix segfault in beast_test
Browse files Browse the repository at this point in the history
Bazel wasn't providing argv[3] which causes a segfault on Windows.
  • Loading branch information
drigz committed Sep 25, 2019
1 parent da285b9 commit 4daad87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/beast_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ int main(int argc, char** argv)

auto const host = "example.com";
auto const port = "80";
auto const target = argv[3];
auto const target = argc > 3 ? argv[3] : "/";
int version = argc == 5 && !std::strcmp("1.0", argv[4]) ? 10 : 11;

// The io_context is required for all I/O
Expand Down

0 comments on commit 4daad87

Please sign in to comment.