diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-10 15:12:08 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-10 15:12:08 +0000 |
commit | d3421c995aaae1961dcd2f053a235afe374b36e1 (patch) | |
tree | 8f69016b66f62bc606b40a06d358d2f6d0822ca1 /funcs | |
parent | 50cf679a187afac70ede774cc966f7954de1ab94 (diff) |
Merged revisions 97697 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r97697 | file | 2008-01-10 11:07:12 -0400 (Thu, 10 Jan 2008) | 6 lines
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: http://svn.digium.com/svn/asterisk/trunk@97698 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_groupcount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/funcs/func_groupcount.c b/funcs/func_groupcount.c index a4476955d..f0d7df1b5 100644 --- a/funcs/func_groupcount.c +++ b/funcs/func_groupcount.c @@ -53,7 +53,8 @@ static int group_count_function_read(struct ast_channel *chan, const 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(); } |