aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_groupcount.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/funcs/func_groupcount.c b/funcs/func_groupcount.c
index ecb927467..cfa91c090 100644
--- a/funcs/func_groupcount.c
+++ b/funcs/func_groupcount.c
@@ -194,6 +194,10 @@ static int group_function_write(struct ast_channel *chan, const char *cmd,
{
char grpcat[256];
+ if (!value) {
+ return -1;
+ }
+
if (!ast_strlen_zero(data)) {
snprintf(grpcat, sizeof(grpcat), "%s@%s", value, data);
} else {