Archived
14
0
Fork 0

fixed compilation of chan_misdn, #11269, thanks IgorG.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89319 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
crichter 2007-11-16 08:54:04 +00:00
parent 9f485cd0a3
commit ee51e2f152

View file

@ -1686,11 +1686,11 @@ static char *complete_ch_helper(struct ast_cli_args *a, int rpos)
if (++which > a->n)
break;
}
ast_mutex_unlock(&c->lock);
ast_channel_unlock(c);
}
if (c) {
ret = ast_strdup(c->name);
ast_mutex_unlock(&c->lock);
ast_channel_unlock(c);
} else
ret = NULL;
return ret;