From: Anthony Minessale Date: Wed, 14 Feb 2007 01:01:58 +0000 (+0000) Subject: add nil thing to xml func X-Git-Tag: v1.0-beta1~1120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3bcb585e35c994d124db88e01e9e62d1a0dd8d4;p=thirdparty%2Ffreeswitch.git add nil thing to xml func git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4248 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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