aboutsummaryrefslogtreecommitdiffstats
path: root/main/xmldoc.c
diff options
context:
space:
mode:
authoreliel <eliel@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-13 13:53:13 +0000
committereliel <eliel@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-13 13:53:13 +0000
commitb8b9781f9577ec4415eafebf607f14d50d80e3ab (patch)
tree27ed7e096cde72bb445492176770ff3f62364b22 /main/xmldoc.c
parent28bb0c48beeb288b8df3b278652fa838bf31c87b (diff)
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. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@156541 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/xmldoc.c')
-rw-r--r--main/xmldoc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/xmldoc.c b/main/xmldoc.c
index 1a2c1dce0..084fdf3fd 100644
--- a/main/xmldoc.c
+++ b/main/xmldoc.c
@@ -682,7 +682,7 @@ static char *xmldoc_get_syntax_fun(struct ast_xml_node *rootnode, const char *ro
}
/* 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 @@ static void xmldoc_parse_parameter(struct ast_xml_node *fixnode, const char *tab
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;