From ce0a5fe14590b8d675b885fccd5f79d7ea17a302 Mon Sep 17 00:00:00 2001 From: Christian Goetze Date: Tue, 21 Aug 2007 22:17:53 +0000 Subject: EFFECTIVE MERGE: svn merge -r 66133:68118 svn+ssh://svn/svn/linden/branches/maintenance into release Actual action: branched maintenance-r68118, merged in release, then copied result into release --- indra/lscript/lscript_compile/indra.y | 1 - indra/lscript/lscript_compile/lscript_tree.cpp | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'indra/lscript') diff --git a/indra/lscript/lscript_compile/indra.y b/indra/lscript/lscript_compile/indra.y index 49d0c38b30..56f40c974c 100644 --- a/indra/lscript/lscript_compile/indra.y +++ b/indra/lscript/lscript_compile/indra.y @@ -53,7 +53,6 @@ %token QUATERNION %token LIST -%token STATE_DEFAULT %token STATE %token EVENT %token JUMP 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; -- cgit v1.2.3