]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add nil thing to xml func
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 14 Feb 2007 01:01:58 +0000 (01:01 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 14 Feb 2007 01:01:58 +0000 (01:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4248 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_xml.h

index 30ba3bf374c4aad3ec1c95a1f2c5966831d04a81..a63e3c8e68a8c627129ae297ced77267032082de 100644 (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
 ///\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