]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak2
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 13 Jul 2010 02:58:24 +0000 (21:58 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 13 Jul 2010 02:58:24 +0000 (21:58 -0500)
src/mod/applications/mod_fifo/mod_fifo.c

index aa956f48b44226b502bb91d5316a86b2bea3a039..2527acd6a9c4a7e1dbe584cba3ac118a1025fade 100644 (file)
@@ -2339,7 +2339,7 @@ struct xml_helper {
 static int xml_callback(void *pArg, int argc, char **argv, char **columnNames)
 {
        struct xml_helper *h = (struct xml_helper *) pArg;
-       switch_xml_t x_tmp, x_out;
+       switch_xml_t x_out;
        int c_off = 0;
        char exp_buf[128] = "";
        switch_time_exp_t tm;
@@ -2357,9 +2357,9 @@ static int xml_callback(void *pArg, int argc, char **argv, char **columnNames)
                }
        }
 
-       x_tmp = switch_xml_add_child_d(h->xml, h->container, h->cc_off++);
+       
 
-       x_out = switch_xml_add_child_d(x_tmp, h->tag, c_off++);
+       x_out = switch_xml_add_child_d(h->xml, h->tag, c_off++);
        switch_xml_set_attr_d(x_out, "simo", argv[3]);
        switch_xml_set_attr_d(x_out, "use_count", argv[4]);
        switch_xml_set_attr_d(x_out, "timeout", argv[5]);
@@ -2390,6 +2390,8 @@ static int xml_outbound(switch_xml_t xml, fifo_node_t *node, char *container, ch
        h.row_off = 0;
        h.verbose = verbose;
 
+       h.xml = switch_xml_add_child_d(h.xml, h.container, h.cc_off++);
+
        fifo_execute_sql_callback(globals.sql_mutex, sql, xml_callback, &h);
 
        switch_safe_free(sql);