mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Don't try to copy the category from the group if no category exists.
(closes issue #11724) Reported by: IgorG Patches: group_count.v1.patch uploaded by IgorG (license 20) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@97697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -58,7 +58,8 @@ static int group_count_function_read(struct ast_channel *chan, char *cmd,
|
||||
}
|
||||
if (gi) {
|
||||
ast_copy_string(group, gi->group, sizeof(group));
|
||||
ast_copy_string(category, gi->category, sizeof(category));
|
||||
if (!ast_strlen_zero(gi->category))
|
||||
ast_copy_string(category, gi->category, sizeof(category));
|
||||
}
|
||||
ast_app_group_list_unlock();
|
||||
}
|
||||
|
Reference in New Issue
Block a user