projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2a4408
)
Fix null pointer dereference in app_groupcount.c (bug 1588)
author
James Golovich
<james@gnuinter.net>
Sun, 9 May 2004 06:23:30 +0000
(06:23 +0000)
committer
James Golovich
<james@gnuinter.net>
Sun, 9 May 2004 06:23:30 +0000
(06:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2928
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_groupcount.c
patch
|
blob
|
history
diff --git
a/apps/app_groupcount.c
b/apps/app_groupcount.c
index
094822f
..
778a139
100755
(executable)
--- 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);
}