tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9977 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
f61698e118
commit
92d870d237
|
@ -256,15 +256,15 @@ SWITCH_STANDARD_API(module_exists_function)
|
|||
|
||||
SWITCH_STANDARD_API(domain_exists_function)
|
||||
{
|
||||
switch_xml_t root, domain;
|
||||
switch_xml_t root = NULL, domain = NULL;
|
||||
|
||||
if (!switch_strlen_zero(cmd)) {
|
||||
if (switch_xml_locate_domain(cmd, NULL, &root, &domain) == SWITCH_STATUS_SUCCESS) {
|
||||
stream->write_function(stream, "true");
|
||||
switch_xml_free(root);
|
||||
} else {
|
||||
stream->write_function(stream, "false");
|
||||
}
|
||||
switch_xml_free(root);
|
||||
}
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue