From c3bcb585e35c994d124db88e01e9e62d1a0dd8d4 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 14 Feb 2007 01:01:58 +0000 Subject: [PATCH] add nil thing to xml func git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4248 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_xml.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/switch_xml.h b/src/include/switch_xml.h index 30ba3bf374..a63e3c8e68 100644 --- a/src/include/switch_xml.h +++ b/src/include/switch_xml.h @@ -265,7 +265,7 @@ SWITCH_DECLARE(switch_xml_t) switch_xml_set_attr(switch_xml_t xml, const char *n ///\param value the attribute value ///\return an xml node or NULL #define switch_xml_set_attr_d(xml, name, value) \ - switch_xml_set_attr(switch_xml_set_flag(xml, SWITCH_XML_DUP), strdup(name), strdup(value)) + switch_xml_set_attr(switch_xml_set_flag(xml, SWITCH_XML_DUP), strdup(name), strdup(switch_str_nil(value))) ///\brief sets a flag for the given tag and returns the tag ///\param xml the xml node