mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-17 02:02:22 +00:00
Merged revisions 44982 via svnmerge from
https://svn.digium.com/svn/asterisk/branches/1.4 ........ r44982 | mogorman | 2006-10-12 15:34:49 -0500 (Thu, 12 Oct 2006) | 2 lines fix for bug 7764. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44983 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -879,10 +879,11 @@ static struct gtalk_pvt *gtalk_alloc(struct gtalk *client, const char *us, const
|
||||
if(strchr(tmp->us, '/')) {
|
||||
data = ast_strdupa((char *) tmp->us);
|
||||
exten = strsep(&data, "/");
|
||||
free(data);
|
||||
} else
|
||||
exten = tmp->us;
|
||||
ast_copy_string(tmp->exten, exten, sizeof(tmp->exten));
|
||||
if(data)
|
||||
free(data);
|
||||
ast_mutex_init(&tmp->lock);
|
||||
ast_mutex_lock(>alklock);
|
||||
tmp->next = client->p;
|
||||
|
Reference in New Issue
Block a user