diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index b4d72d95c7..3acbca5b61 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -1616,7 +1616,6 @@ SWITCH_STANDARD_API(xml_locate_function) switch_event_t *params = NULL; char *xmlstr; char delim = ' '; - char *host = NULL; const char *err = NULL; stream_format format = { 0 }; @@ -1677,11 +1676,7 @@ SWITCH_STANDARD_API(xml_locate_function) end: if (err) { - if (host) { - stream->write_function(stream, "%s\n", err); - } else { - stream->write_function(stream, "-ERR %s\n", err); - } + stream->write_function(stream, "-ERR %s\n", err); } if (obj) {