Fix merge issue

This commit is contained in:
Arvid Norberg 2016-11-24 10:54:26 -05:00 committed by GitHub
parent b3c3c2aae6
commit 5dd46ec4f4
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ TORRENT_TEST(copy_buffer)
TEST_CHECK(strcmp(a.ptr(idx1), "testing") == 0);
// attempt zero size allocation
int const idx2 = a.copy_buffer("nothing", 0);
int const idx2 = a.copy_buffer({});
TEST_CHECK(idx2 == -1);
// attempt to get a pointer after zero allocation