dect
/
asterisk
Archived
13
0
Fork 0

don't crash if no group is specified (bug #4836)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6237 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2005-07-27 22:43:18 +00:00
parent e273ab76f0
commit cab50baaaf
1 changed files with 4 additions and 2 deletions

View File

@ -33,8 +33,10 @@ static char *group_count_function_read(struct ast_channel *chan, char *cmd, char
ast_app_group_split_group(data, group, sizeof(group), category, sizeof(category));
if (ast_strlen_zero(group)) {
grp = pbx_builtin_getvar_helper(chan, category);
ast_copy_string(group, grp, sizeof(group));
if ((grp = pbx_builtin_getvar_helper(chan, category)))
ast_copy_string(group, grp, sizeof(group));
else
return buf;
}
count = ast_app_group_get_count(group, category);