mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 03:07:59 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@69307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -97,15 +97,13 @@ static char *group_function_read(struct ast_channel *chan, char *cmd, char *data
|
||||
|
||||
ast_app_group_list_lock();
|
||||
|
||||
gi = ast_app_group_list_head();
|
||||
while (gi) {
|
||||
for (gi = ast_app_group_list_head(); gi; gi = AST_LIST_NEXT(gi, list)) {
|
||||
if (gi->chan != chan)
|
||||
continue;
|
||||
if (ast_strlen_zero(data))
|
||||
break;
|
||||
if (!ast_strlen_zero(gi->category) && !strcasecmp(gi->category, data))
|
||||
break;
|
||||
gi = AST_LIST_NEXT(gi, list);
|
||||
}
|
||||
|
||||
if (gi)
|
||||
@@ -150,8 +148,7 @@ static char *group_list_function_read(struct ast_channel *chan, char *cmd, char
|
||||
|
||||
ast_app_group_list_lock();
|
||||
|
||||
gi = ast_app_group_list_head();
|
||||
while (gi) {
|
||||
for (gi = ast_app_group_list_head(); gi; gi = AST_LIST_NEXT(gi, list)) {
|
||||
if (gi->chan != chan)
|
||||
continue;
|
||||
if (!ast_strlen_zero(tmp1)) {
|
||||
@@ -166,7 +163,6 @@ static char *group_list_function_read(struct ast_channel *chan, char *cmd, char
|
||||
else
|
||||
snprintf(tmp1, sizeof(tmp1), "%s", gi->group);
|
||||
}
|
||||
gi = AST_LIST_NEXT(gi, list);
|
||||
}
|
||||
|
||||
ast_app_group_list_unlock();
|
||||
|
Reference in New Issue
Block a user