]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
CID:1024579 Logically dead code
authorMichael Jerris <mike@jerris.com>
Fri, 16 May 2014 19:09:18 +0000 (19:09 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 16 May 2014 19:09:18 +0000 (19:09 +0000)
src/mod/applications/mod_commands/mod_commands.c

index b4d72d95c7a1efb920a470b750a2b5f99988f701..3acbca5b61f38ed418b112d7ab4ca479971d5a93 100644 (file)
@@ -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) {