add nil thing to xml func

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4248 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-02-14 01:01:58 +00:00
parent c0a362d156
commit c3bcb585e3
1 changed files with 1 additions and 1 deletions

View File

@ -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 ///\param value the attribute value
///\return an xml node or NULL ///\return an xml node or NULL
#define switch_xml_set_attr_d(xml, name, value) \ #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 ///\brief sets a flag for the given tag and returns the tag
///\param xml the xml node ///\param xml the xml node