mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
FS-2746 --resolve large xmlrpc update thanks garmt
This commit is contained in:
@@ -240,8 +240,10 @@ typedef struct {
|
||||
*/
|
||||
|
||||
static void
|
||||
start_element (void *user_data, const xmlChar *name, const xmlChar **attrs)
|
||||
{
|
||||
start_element(void * const user_data,
|
||||
const xmlChar * const name,
|
||||
const xmlChar ** const attrs ATTR_UNUSED) {
|
||||
|
||||
parse_context *context;
|
||||
xml_element *elem, *new_current;
|
||||
|
||||
@@ -281,9 +283,12 @@ start_element (void *user_data, const xmlChar *name, const xmlChar **attrs)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void
|
||||
end_element (void *user_data, const xmlChar *name)
|
||||
{
|
||||
end_element(void * const user_data,
|
||||
const xmlChar * const name ATTR_UNUSED) {
|
||||
|
||||
parse_context *context;
|
||||
|
||||
XMLRPC_ASSERT(user_data != NULL && name != NULL);
|
||||
@@ -295,7 +300,7 @@ end_element (void *user_data, const xmlChar *name)
|
||||
/* XXX - I think expat enforces these facts, but I want to be sure.
|
||||
** If one of these assertion ever fails, it should be replaced by a
|
||||
** non-assertion runtime error check. */
|
||||
XMLRPC_ASSERT(strcmp(name, context->current->_name) == 0);
|
||||
XMLRPC_ASSERT(xmlrpc_streq(name, context->current->_name));
|
||||
XMLRPC_ASSERT(context->current->_parent != NULL ||
|
||||
context->current == context->root);
|
||||
|
||||
|
Reference in New Issue
Block a user