Skip buffer initialization.

This commit is contained in:
Alek Mosingiewicz 2018-05-25 06:57:22 +02:00
parent 51bb793664
commit 51693aa0bd

View File

@ -208,7 +208,7 @@ namespace chaiscript
static bool skip_bom(std::ifstream &infile) { static bool skip_bom(std::ifstream &infile) {
std::streamsize bytes_needed = 3; std::streamsize bytes_needed = 3;
std::streamsize bytes_read = 0; std::streamsize bytes_read = 0;
char buffer[3] = { '\0' }; char buffer[3];
bytes_read = infile.readsome(buffer, bytes_needed); bytes_read = infile.readsome(buffer, bytes_needed);