summaryrefslogtreecommitdiff
path: root/apps/app_groupcount.c
diff options
context:
space:
mode:
authorJames Golovich <james@gnuinter.net>2004-05-09 06:23:30 +0000
committerJames Golovich <james@gnuinter.net>2004-05-09 06:23:30 +0000
commitaff78a98cf9583fd7dac3c55dcdd48dc040af5f5 (patch)
tree043bc34ce9eba875eeb48195f5e14276a06d357e /apps/app_groupcount.c
parentd2a44089306962543a251bd6f21a7de38bcaebde (diff)
Fix null pointer dereference in app_groupcount.c (bug 1588)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2928 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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);
}