forked from premiere/premiere-libtorrent
fix valgrind issues in tests
This commit is contained in:
parent
75789e3958
commit
0f3cb1b8a4
|
@ -224,6 +224,7 @@ TORRENT_EXPORT void assert_fail(char const* expr, int line, char const* file
|
|||
#endif
|
||||
|
||||
char stack[8192];
|
||||
stack[0] = '\0';
|
||||
print_backtrace(stack, sizeof(stack), 0);
|
||||
|
||||
fprintf(out, "assertion failed. Please file a bugreport at "
|
||||
|
|
|
@ -252,6 +252,7 @@ int test_main()
|
|||
|
||||
std::vector<char> buf;
|
||||
bencode(std::back_inserter(buf), torrent);
|
||||
buf.push_back('\0');
|
||||
printf("%s\n", &buf[0]);
|
||||
error_code ec;
|
||||
torrent_info ti(&buf[0], buf.size(), ec);
|
||||
|
|
Loading…
Reference in New Issue