[asterisk-commits] eliel: trunk r156541 - /trunk/main/xmldoc.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 13 07:53:14 CST 2008


Author: eliel
Date: Thu Nov 13 07:53:13 2008
New Revision: 156541

URL: http://svn.digium.com/view/asterisk?view=rev&rev=156541
Log:
Fix a typo introduced when changing xmldoc_has_arguments() to xmldoc_has_inside()
we need to pass the name of the node that we are looking for.

Modified:
    trunk/main/xmldoc.c

Modified: trunk/main/xmldoc.c
URL: http://svn.digium.com/view/asterisk/trunk/main/xmldoc.c?view=diff&rev=156541&r1=156540&r2=156541
==============================================================================
--- trunk/main/xmldoc.c (original)
+++ trunk/main/xmldoc.c Thu Nov 13 07:53:13 2008
@@ -682,7 +682,7 @@
 		}
 
 		/* Get the argument name, if it is not the leaf, go inside that parameter. */
-		if (xmldoc_has_inside(node, "arguments")) {
+		if (xmldoc_has_inside(node, "argument")) {
 			parenthesis = ast_xml_get_attribute(node, "hasparams");
 			prnparenthesis = 0;
 			if (parenthesis) {
@@ -1508,7 +1508,7 @@
 		return;
 	}
 
-	hasarguments = xmldoc_has_inside(node, "arguments");
+	hasarguments = xmldoc_has_inside(node, "argument");
 	if (!(paramname = ast_xml_get_attribute(node, "name"))) {
 		/* parameter MUST have an attribute name. */
 		return;




More information about the asterisk-commits mailing list