[bim] Don't create or throw errors on non-existent files
This commit is contained in:
parent
1d967c882b
commit
f9d9226e07
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user