From: Michael Jerris Date: Thu, 21 Aug 2008 02:10:43 +0000 (+0000) Subject: fix build on newer gcc with pickier warnings X-Git-Tag: v1.0.2~1401 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f8991d6e8e28dc902bae98204102c63424d2aa8;p=thirdparty%2Ffreeswitch.git fix build on newer gcc with pickier warnings git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9339 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 50731bc3d1..f250466ca9 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -1403,7 +1403,7 @@ static void voicemail_check_main(switch_core_session_t *session, const char *pro switch_snprintf(msg_count, sizeof(msg_count), "%d:urgent-new", total_new_urgent_messages); TRY_CODE(switch_ivr_phrase_macro(session, VM_MESSAGE_COUNT_MACRO, msg_count, NULL, &args)); informed++; - if (!switch_strlen_zero(global_buf)) { + if (*global_buf =! '\0') { vm_check_state = VM_CHECK_MENU; continue; } @@ -1412,7 +1412,7 @@ static void voicemail_check_main(switch_core_session_t *session, const char *pro switch_snprintf(msg_count, sizeof(msg_count), "%d:new", total_new_messages); TRY_CODE(switch_ivr_phrase_macro(session, VM_MESSAGE_COUNT_MACRO, msg_count, NULL, &args)); informed++; - if (!switch_strlen_zero(global_buf)) { + if (*global_buf =! '\0') { vm_check_state = VM_CHECK_MENU; continue; } @@ -1621,7 +1621,7 @@ static void voicemail_check_main(switch_core_session_t *session, const char *pro char input[10] = ""; char key_buf[80] = ""; play_msg_type = MSG_NONE; - if (!switch_strlen_zero(global_buf)) { + if (*global_buf =! '\0') { switch_set_string(input, global_buf); *global_buf = '\0'; status = SWITCH_STATUS_SUCCESS;