diff --git a/main/channel.c b/main/channel.c index 65931ed6dd..484ccc2249 100644 --- a/main/channel.c +++ b/main/channel.c @@ -4482,6 +4482,9 @@ ast_group_t ast_get_group(const char *s) int start=0, finish=0, x; ast_group_t group = 0; + if (ast_strlen_zero(s)) + return 0; + c = ast_strdupa(s); while ((piece = strsep(&c, ","))) {