From bfa414cb0fd783857d20faf9e30db5afe010a6c7 Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Sat, 14 Aug 2010 16:49:20 -0400 Subject: [PATCH] mod_lcr: fix compiler warning on newer gcc --- src/mod/applications/mod_lcr/mod_lcr.c | 2 +- src/switch_event.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_lcr/mod_lcr.c b/src/mod/applications/mod_lcr/mod_lcr.c index cace5e0c68..bdf53527db 100644 --- a/src/mod/applications/mod_lcr/mod_lcr.c +++ b/src/mod/applications/mod_lcr/mod_lcr.c @@ -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); diff --git a/src/switch_event.c b/src/switch_event.c index eccc695679..daf97ae6ce 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -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);