diff options
Diffstat (limited to 'funcs/func_groupcount.c')
-rw-r--r-- | funcs/func_groupcount.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/funcs/func_groupcount.c b/funcs/func_groupcount.c index 47fb9eabf..a1b2864c9 100644 --- a/funcs/func_groupcount.c +++ b/funcs/func_groupcount.c @@ -137,6 +137,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 { |