fix for bug 7764.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Matt O'Gorman 19 years ago
parent ec4bf13915
commit 0c4d8edca6

@ -877,10 +877,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(&gtalklock);
tmp->next = client->p;

Loading…
Cancel
Save