Fixed repl bug

This commit is contained in:
2023-02-06 04:47:30 +00:00
parent d5c833b344
commit 0d7e4db661
5 changed files with 14 additions and 11 deletions

View File

@@ -145,6 +145,9 @@ void Toy_runSource(char* source) {
void Toy_runSourceFile(char* fname) {
size_t size = 0; //not used
char* source = Toy_readFile(fname, &size);
if (!source) {
return;
}
Toy_runSource(source);
free((void*)source);
}