diff options
author | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-09 06:23:30 +0000 |
---|---|---|
committer | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-09 06:23:30 +0000 |
commit | 3b044214ebeee6cd0a3bd9f8e17f6ca345739ff2 (patch) | |
tree | 043bc34ce9eba875eeb48195f5e14276a06d357e /apps | |
parent | 96772482f659dba7dbb91ece321dab06e9d6fdc8 (diff) |
Fix null pointer dereference in app_groupcount.c (bug 1588)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2928 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_groupcount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_groupcount.c b/apps/app_groupcount.c index 094822f6d..778a1399b 100755 --- a/apps/app_groupcount.c +++ b/apps/app_groupcount.c @@ -68,7 +68,7 @@ static int group_get_count(char *group) chan = ast_channel_walk(NULL); while(chan) { test = pbx_builtin_getvar_helper(chan, "GROUP"); - if (!strcasecmp(test, group)) + if (test && !strcasecmp(test, group)) count++; chan = ast_channel_walk(chan); } |