From dbe62c25e96502585f059722f60cba199dc9b8e2 Mon Sep 17 00:00:00 2001
From: Stefan Knoblich <s.knoblich@axsentis.de>
Date: Sun, 15 Aug 2010 00:35:10 +0200
Subject: [PATCH] [mod_lcr] Use SWITCH_VA_NONE instead of an empty string to
 (finally) fix the gcc printf format warnings.

---
 src/mod/applications/mod_lcr/mod_lcr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mod/applications/mod_lcr/mod_lcr.c b/src/mod/applications/mod_lcr/mod_lcr.c
index bdf53527db..bbf7bb568d 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, "");
+					event_xml = switch_event_xmlize(current->fields, SWITCH_VA_NONE);
 					event_str = switch_xml_toxml(event_xml, SWITCH_FALSE);
 					stream->write_function(stream, event_str);
 					switch_xml_free(event_xml);