aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_groupcount.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_groupcount.c')
-rwxr-xr-xapps/app_groupcount.c2
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);
}