[bim] Don't create or throw errors on non-existent files

This commit is contained in:
K. Lange 2018-08-16 23:28:37 +09:00
parent 1d967c882b
commit f9d9226e07

View File

@ -1508,14 +1508,8 @@ void open_file(char * file) {
setup_buffer(env);
FILE * f = fopen(file, "r");
if (!f) {
f = fopen(file,"a+");
}
if (!f) {
char buf[1024];
sprintf(buf, "Could not open %s", file);
render_error(buf);
return;
}