mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 05:40:52 +00:00
Merged revisions 85896 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r85896 | russell | 2007-10-16 14:10:01 -0500 (Tue, 16 Oct 2007) | 2 lines Remove a pointless lock. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85897 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -128,7 +128,6 @@ static char authpassword[42];
|
|||||||
|
|
||||||
static int expungeonhangup = 1;
|
static int expungeonhangup = 1;
|
||||||
static int imapgreetings = 0;
|
static int imapgreetings = 0;
|
||||||
AST_MUTEX_DEFINE_STATIC(delimiter_lock);
|
|
||||||
static char delimiter = '\0';
|
static char delimiter = '\0';
|
||||||
|
|
||||||
struct vm_state;
|
struct vm_state;
|
||||||
@@ -9221,9 +9220,7 @@ void mm_notify(MAILSTREAM * stream, char *string, long errflg)
|
|||||||
void mm_list(MAILSTREAM * stream, int delim, char *mailbox, long attributes)
|
void mm_list(MAILSTREAM * stream, int delim, char *mailbox, long attributes)
|
||||||
{
|
{
|
||||||
if (delimiter == '\0') {
|
if (delimiter == '\0') {
|
||||||
ast_mutex_lock(&delimiter_lock);
|
|
||||||
delimiter = delim;
|
delimiter = delim;
|
||||||
ast_mutex_unlock(&delimiter_lock);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ast_debug(5, "Delimiter set to %c and mailbox %s\n",delim, mailbox);
|
ast_debug(5, "Delimiter set to %c and mailbox %s\n",delim, mailbox);
|
||||||
|
Reference in New Issue
Block a user