More locking fixes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2003-05-19 01:07:06 +00:00
parent a342626920
commit 1d22c714ce
2 changed files with 2 additions and 1 deletions

View File

@ -767,6 +767,7 @@ static void reload_queues(void)
if (q) {
/* Initialize it */
memset(q, 0, sizeof(struct ast_call_queue));
ast_pthread_mutex_init(&q->lock);
strncpy(q->name, cat, sizeof(q->name));
new = 1;
} else new = 0;

View File

@ -5224,7 +5224,7 @@ static struct iax2_dpcache *find_cache(struct ast_channel *chan, char *data, cha
/* We found an entry that matches us! */
if (!strcmp(dp->peercontext, data) && !strcmp(dp->exten, exten))
break;
perv = dp;
prev = dp;
dp = next;
}
if (!dp) {