aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-10 15:07:12 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-10 15:07:12 +0000
commit56b4420d6402fad8c65e3531f4bc255a1adcd33f (patch)
treef9683c3e5d0f66c05e06644fcf1376c89ff5a2ec /funcs
parent54c5cd5692d6b99931bc160803e4288e219b25f8 (diff)
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/branches/1.4@97697 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_groupcount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/funcs/func_groupcount.c b/funcs/func_groupcount.c
index 281d9d055..bb2bcf49c 100644
--- a/funcs/func_groupcount.c
+++ b/funcs/func_groupcount.c
@@ -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();
}