Skip to content

Commit

Permalink
Fix static analysis warning
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20000 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 4, 2014
1 parent 50d55a6 commit 1f16b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/simulation/simulation_info_xml.c
Expand Up @@ -199,7 +199,7 @@ static void XMLCALL endElement(void *userData, const char *name)
if(0 == strcmp("equation", name))
{
int i;
xml->equationInfo[curIndex].vars = (VAR_INFO**) malloc(sizeof(VAR_INFO)*xml->equationInfo[curIndex].numVar);
xml->equationInfo[curIndex].vars = (VAR_INFO**) malloc(sizeof(VAR_INFO*)*xml->equationInfo[curIndex].numVar);
for(i=0; i<xml->equationInfo[curIndex].numVar; i++)
{
VAR_INFO *var = (VAR_INFO*) malloc(sizeof(VAR_INFO));
Expand Down

0 comments on commit 1f16b04

Please sign in to comment.