absyntax_utils/function_call_param_iterator.cc
changeset 258 d7d92b2f87e9
parent 247 560075ece524
child 265 4d222f46f8cc
--- a/absyntax_utils/function_call_param_iterator.cc	Wed Mar 30 19:53:32 2011 +0100
+++ b/absyntax_utils/function_call_param_iterator.cc	Thu Mar 31 10:45:34 2011 +0100
@@ -495,8 +495,10 @@
   /* If the syntax parser is working correctly, exactly one of the 
    * following two symbols will be NULL, while the other is != NULL.
    */
-  if (symbol->   formal_param_list != NULL) return symbol->   formal_param_list->accept(*this);
-  if (symbol->nonformal_param_list != NULL) return symbol->nonformal_param_list->accept(*this);
+  if (symbol == (function_invocation_c *)f_call) {
+	if (symbol->   formal_param_list != NULL) return symbol->   formal_param_list->accept(*this);
+    if (symbol->nonformal_param_list != NULL) return symbol->nonformal_param_list->accept(*this);
+  }
 
   return NULL;
 }