Fixed a repl util error case

This commit is contained in:
2026-05-01 20:51:32 +10:00
parent 18a4b33c4e
commit 7cdb81e0bf
+1
View File
@@ -38,6 +38,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;
}