Skip to content
Snippets Groups Projects
Commit 62a32fef authored by Eliel C. Sardanons's avatar Eliel C. Sardanons
Browse files

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: https://origsvn.digium.com/svn/asterisk/trunk@156541 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent df6b78b7
Branches
Tags
No related merge requests found
...@@ -682,7 +682,7 @@ static char *xmldoc_get_syntax_fun(struct ast_xml_node *rootnode, const char *ro ...@@ -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. */ /* 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"); parenthesis = ast_xml_get_attribute(node, "hasparams");
prnparenthesis = 0; prnparenthesis = 0;
if (parenthesis) { if (parenthesis) {
...@@ -1508,7 +1508,7 @@ static void xmldoc_parse_parameter(struct ast_xml_node *fixnode, const char *tab ...@@ -1508,7 +1508,7 @@ static void xmldoc_parse_parameter(struct ast_xml_node *fixnode, const char *tab
return; return;
} }
hasarguments = xmldoc_has_inside(node, "arguments"); hasarguments = xmldoc_has_inside(node, "argument");
if (!(paramname = ast_xml_get_attribute(node, "name"))) { if (!(paramname = ast_xml_get_attribute(node, "name"))) {
/* parameter MUST have an attribute name. */ /* parameter MUST have an attribute name. */
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment