mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Skip buffer initialization.
This commit is contained in:
parent
51bb793664
commit
51693aa0bd
@ -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);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user