Skip to content

Commit 0194570

Browse files
committed
- Avoid segfault when init-file does not exist
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10314 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 8c56b89 commit 0194570

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

c_runtime/simulation_input_xml.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ endElement(void *userData, const char *name)
226226
if (!file) {
227227
cerr << "simulation_input_xml.cpp: Error: can not read file " << *filename << " as indata to simulation." << endl;
228228
delete filename;
229-
fclose(file);
230229
EXIT(-1);
231230
}
232231
// create the XML parser

0 commit comments

Comments
 (0)