From 17b6087d7ae5f325699e8c98aca54d69a40fb588 Mon Sep 17 00:00:00 2001 From: Jeff Lenk <jeff@jefflenk.com> Date: Wed, 12 Dec 2012 21:15:09 -0600 Subject: [PATCH] fix for covici on mailing list --- src/mod/applications/mod_conference/mod_conference.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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);