From: Jeff Lenk Date: Thu, 13 Dec 2012 03:15:09 +0000 (-0600) Subject: fix for covici on mailing list X-Git-Tag: v1.3.10~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17b6087d7ae5f325699e8c98aca54d69a40fb588;p=thirdparty%2Ffreeswitch.git fix for covici on mailing list --- diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 2f5456106f..a4a8237d21 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -5233,10 +5233,16 @@ static switch_status_t conf_api_sub_enforce_floor(conference_member_t *member, s static switch_xml_t add_x_tag(switch_xml_t x_member, const char *name, const char *value, int off) { - switch_size_t dlen = strlen(value) * 3 + 1; + switch_size_t dlen; char *data; switch_xml_t x_tag; + if (!value) { + return 0; + } + + dlen = strlen(value) * 3 + 1; + x_tag = switch_xml_add_child_d(x_member, name, off); switch_assert(x_tag);