initialize bencoded ints with zero when constructed

This commit is contained in:
arvidn 2018-11-16 08:22:36 +01:00 committed by Arvid Norberg
parent 5383854768
commit 1dc8c1c127
1 changed files with 1 additions and 1 deletions

View File

@ -519,7 +519,7 @@ namespace {
switch (t)
{
case int_t:
new (&data) integer_type;
new (&data) integer_type(0);
break;
case string_t:
new (&data) string_type;