We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e88b42 commit f032e3fCopy full SHA for f032e3f
1 file changed
src/snmalloc/ds_core/helpers.h
@@ -322,7 +322,7 @@ namespace snmalloc
322
append_char('-');
323
s = 0 - s;
324
}
325
- std::array<char, 20> buf;
+ std::array<char, 20> buf{{0}};
326
const char digits[] = "0123456789";
327
for (long i = long(buf.size() - 1); i >= 0; i--)
328
{
@@ -352,7 +352,7 @@ namespace snmalloc
352
353
append_char('0');
354
append_char('x');
355
- std::array<char, 16> buf;
+ std::array<char, 16> buf{{0}};
356
const char hexdigits[] = "0123456789abcdef";
357
// Length of string including null terminator
358
static_assert(sizeof(hexdigits) == 0x11);
0 commit comments