]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_lcr: fix compiler warning on newer gcc
authorMathieu Rene <mrene@avgs.ca>
Sat, 14 Aug 2010 20:49:20 +0000 (16:49 -0400)
committerMathieu Rene <mrene@avgs.ca>
Sat, 14 Aug 2010 20:50:06 +0000 (16:50 -0400)
src/mod/applications/mod_lcr/mod_lcr.c
src/switch_event.c

index cace5e0c68c88a5d2064394844bde467a6287483..bdf53527db6642aae83d878978acf2ada6e0517f 100644 (file)
@@ -1783,7 +1783,7 @@ SWITCH_STANDARD_API(dialplan_lcr_function)
                                
                                write_data(stream, as_xml, "dialstring", current->dialstring, 2, maximum_lengths.dialstring);
                                if (as_xml) {
-                                       event_xml = switch_event_xmlize(current->fields, NULL);
+                                       event_xml = switch_event_xmlize(current->fields, "");
                                        event_str = switch_xml_toxml(event_xml, SWITCH_FALSE);
                                        stream->write_function(stream, event_str);
                                        switch_xml_free(event_xml);
index eccc695679241d3f57354bcd46f95ec71709aa9c..daf97ae6ce6a4cc8bacae660e46dccc9b6cfa274 100644 (file)
@@ -1231,7 +1231,7 @@ SWITCH_DECLARE(switch_xml_t) switch_event_xmlize(switch_event_t *event, const ch
                return xml;
        }
 
-       if (fmt) {
+       if (!zstr(fmt)) {
                va_start(ap, fmt);
 #ifdef HAVE_VASPRINTF
                ret = vasprintf(&data, fmt, ap);