]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove a pointless lock.
authorRussell Bryant <russell@russellbryant.com>
Tue, 16 Oct 2007 19:10:01 +0000 (19:10 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 16 Oct 2007 19:10:01 +0000 (19:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85896 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index fb39f361242471f9bb4f945b068b106c8c6ecbe8..756dce48dbc4d7b130a4d1f6e704bc7c529ed7f2 100644 (file)
@@ -108,7 +108,6 @@ static char authuser[32];
 static char authpassword[42];
 
 static int expungeonhangup = 1;
-AST_MUTEX_DEFINE_STATIC(delimiter_lock);
 static char delimiter = '\0';
 
 struct vm_state;
@@ -8549,9 +8548,7 @@ void mm_notify(MAILSTREAM * stream, char *string, long errflg)
 void mm_list(MAILSTREAM * stream, int delim, char *mailbox, long attributes)
 {
        if (delimiter == '\0') {
-               ast_mutex_lock(&delimiter_lock);
                delimiter = delim;
-               ast_mutex_unlock(&delimiter_lock);
        }
        if (option_debug > 4) {
                ast_log(LOG_DEBUG, "Delimiter set to %c and mailbox %s\n",delim, mailbox);