addLabelToStatement: correctly create a dummy statementBodyType

This commit is contained in:
Peter De Wachter 2016-01-23 18:47:57 +01:00
parent 9123e36a38
commit 606dfd1650

View File

@ -45,7 +45,7 @@ addLabelToStatement(labelList, statement)
statementType *newStatement();
if (statement == NULL)
statement = newStatement(NULL_STATEMENT, NULL);
statement = newStatement(NULL_STATEMENT, (statementBodyType){ NULL });
statement->labels = labelList;
return(statement);
}