Skip to content

Commit

Permalink
- fix #3060.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23950 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Willi Braun committed Jan 6, 2015
1 parent 1d9d15f commit 23cb85b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SimulationRuntime/c/simulation/simulation_info_json.c
Expand Up @@ -284,13 +284,15 @@ static const char* readEquations(const char *str,MODEL_DATA_XML *xml)
int i;
str=assertChar(str,'[');
str = readEquation(str,xml->equationInfo,0);
str = assertChar(str,',');
for (i=1; i<xml->nEquations; i++) {
str = assertChar(str,',');
str = readEquation(str,xml->equationInfo+i,i);
/* TODO: Odd, it seems there is 1 fewer equation than expected... */
/*
if (i != xml->nEquations-1) {
str=assertChar(str,',');
}
*/
}
str=assertChar(str,']');
return str;
Expand Down

0 comments on commit 23cb85b

Please sign in to comment.