Added vscode extension settings
Also fixed a repl util error case
This commit is contained in:
@@ -37,6 +37,7 @@ unsigned char* readFile(char* path, int* size) {
|
||||
//read the file
|
||||
if (fread(buffer, sizeof(unsigned char), *size, file) < (unsigned int)(*size)) {
|
||||
fclose(file);
|
||||
free(buffer);
|
||||
*size = -2; //singal a read error
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user