From: Michael Jerris Date: Mon, 29 Sep 2008 17:36:43 +0000 (+0000) Subject: silence complaining compiler X-Git-Tag: v1.0.2~1044 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6393d31a9a1ef17f1098840f161e1abc6a00da9;p=thirdparty%2Ffreeswitch.git silence complaining compiler git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9743 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 5f5335e696..0e3f597e1f 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -2225,7 +2225,7 @@ static switch_status_t deliver_vm(vm_profile_t *profile, if(!switch_strlen_zero(vm_timezone)) { char tz_date[80] = ""; - if ((switch_strftime_tz(vm_timezone, profile->date_fmt, tz_date, sizeof(tz_date)) == SWITCH_STATUS_SUCCESS) && !switch_strlen_zero(tz_date)) { + if ((switch_strftime_tz(vm_timezone, profile->date_fmt, tz_date, sizeof(tz_date)) == SWITCH_STATUS_SUCCESS) && !switch_strlen_zero_buf(tz_date)) { switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "voicemail_time", tz_date); } else { switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "voicemail_time", date);