]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix voicemail menu
authorBrian West <brian@freeswitch.org>
Fri, 22 Aug 2008 17:05:11 +0000 (17:05 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 22 Aug 2008 17:05:11 +0000 (17:05 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9348 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_voicemail/mod_voicemail.c

index 7e6496b288f0170c183703c6fa3df69af729dbad..7003314c0e30a37c4738e156a3c2b2730d678a16 100644 (file)
@@ -215,7 +215,7 @@ static char vm_pref_sql[] =
        "   username        VARCHAR(255),\n"
        "   domain          VARCHAR(255),\n" 
        "   name_path       VARCHAR(255),\n" 
-       "   greeting_path VARCHAR(255)\n" 
+       "   greeting_path VARCHAR(255),\n" 
        "   password VARCHAR(255)\n" 
        ");\n";
 
@@ -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 ((*global_buf =! '\0')) {
+                               if (!switch_strlen_zero(global_buf)) {
                                        switch_set_string(input, global_buf);
                                        *global_buf = '\0';
                                        status = SWITCH_STATUS_SUCCESS;