From 3b044214ebeee6cd0a3bd9f8e17f6ca345739ff2 Mon Sep 17 00:00:00 2001 From: citats Date: Sun, 9 May 2004 06:23:30 +0000 Subject: 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 --- apps/app_groupcount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/app_groupcount.c') 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); } -- cgit v1.2.3