summaryrefslogtreecommitdiff
path: root/indra/lscript/lscript_compile/lscript_tree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/lscript/lscript_compile/lscript_tree.cpp')
-rw-r--r--indra/lscript/lscript_compile/lscript_tree.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/lscript/lscript_compile/lscript_tree.cpp b/indra/lscript/lscript_compile/lscript_tree.cpp
index 4f54bdd7b7..af06bc1c8b 100644
--- a/indra/lscript/lscript_compile/lscript_tree.cpp
+++ b/indra/lscript/lscript_compile/lscript_tree.cpp
@@ -8937,8 +8937,12 @@ void LLScriptEventHandler::recurse(FILE *fp, S32 tabs, S32 tabsize, LSCRIPTCompi
{
entrycount = 0;
mStatement->recurse(fp, tabs, tabsize, pass, ptype, prunearg, scope, type, basetype, count, chunk, heap, stacksize, mScopeEntry, entrycount, NULL);
- fprintf(fp, "Function Args: %s\n", mScopeEntry->mFunctionArgs.mString);
- fprintf(fp, "Local List: %s\n", mScopeEntry->mLocals.mString);
+
+ const char *function_args = mScopeEntry->mFunctionArgs.mString;
+ fprintf(fp, "Function Args: %s\n", function_args?function_args:"");
+
+ const char *local_list = mScopeEntry->mLocals.mString;
+ fprintf(fp, "Local List: %s\n", local_list?local_list:"");
}
mStackSpace = (S32)count;
break;