Skip to content

Commit 7c7db5f

Browse files
committed
Added dereferencing of the the filename string pointer in read_input, so that
you get a meaningful error message if it fails to open the input data file. git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@4919 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 159bb32 commit 7c7db5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c_runtime/simulation_input.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void read_commented_value(ifstream &f, char **str);
6363

6464
ifstream file(filename->c_str());
6565
if (!file) {
66-
cerr << "Error, can not read file " << filename
66+
cerr << "Error, can not read file " << *filename
6767
<< " as indata to simulation." << endl;
6868
exit(-1);
6969
}

0 commit comments

Comments
 (0)