Skip to content

Commit

Permalink
Fix crash when pretty-printing an empty list.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sei-Lisa committed Jun 4, 2014
1 parent 888eb61 commit 139b7c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lscript_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6178,7 6178,10 @@ void LLScriptListInitializer::recurse(LLFILE *fp, S32 tabs, S32 tabsize, LSCRIPT
{
case LSCP_PRETTY_PRINT:
fprintf(fp, "[ ");
mExpressionList->recurse(fp, tabs, tabsize, pass, ptype, prunearg, scope, type, basetype, count, chunk, heap, stacksize, entry, entrycount, NULL);
if (mExpressionList)
{
mExpressionList->recurse(fp, tabs, tabsize, pass, ptype, prunearg, scope, type, basetype, count, chunk, heap, stacksize, entry, entrycount, NULL);
}
fprintf(fp, " ]");
break;
case LSCP_EMIT_ASSEMBLY:
Expand Down

0 comments on commit 139b7c9

Please sign in to comment.