mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
CID:1024579 Logically dead code
This commit is contained in:
parent
3666029ff0
commit
73c1e09269
@ -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, "<error>%s</error>\n", err);
|
||||
} else {
|
||||
stream->write_function(stream, "-ERR %s\n", err);
|
||||
}
|
||||
stream->write_function(stream, "-ERR %s\n", err);
|
||||
}
|
||||
|
||||
if (obj) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user