Skip to content

Commit

Permalink
Initialize variable to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Mar 1, 2016
1 parent 0bb9e15 commit a1a01c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Template/CodegenCFunctions.tpl
Expand Up @@ -5646,7 +5646,7 @@ template daeExpCall(Exp call, Context context, Text &preExp, Text &varDecls, Tex
let ty_str = expTypeArray(ty)
let tvar = tempDecl(ty_str, &varDecls)
let &preExp += // Why doesn't Susan allow me to use <<< here?
'
'<%tvarc%>=0;
<%dims%>if (<%tvarc%> > 1) {
throwStreamPrint(threadData, "Called vector with >1 dimensions with size >1: <%Util.escapeModelicaStringToCString(printExpStr(exp))%>");
}
Expand Down

0 comments on commit a1a01c3

Please sign in to comment.