X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=funcs%2Ffunc_groupcount.c;h=f0d7df1b5f791c6b40d05882f5ca5b99cdc2ab3a;hp=a4476955d58030761703db6f208fe276dc5c89ca;hb=8e1f8df431fd6eaedee328c72f9a3fa77e53555f;hpb=7258c132bdada111065fad3791dcd5fd863eafc8 diff --git a/funcs/func_groupcount.c b/funcs/func_groupcount.c index a447695..f0d7df1 100644 --- a/funcs/func_groupcount.c +++ b/funcs/func_groupcount.c @@ -53,7 +53,8 @@ static int group_count_function_read(struct ast_channel *chan, const char *cmd, } if (gi) { ast_copy_string(group, gi->group, sizeof(group)); - ast_copy_string(category, gi->category, sizeof(category)); + if (!ast_strlen_zero(gi->category)) + ast_copy_string(category, gi->category, sizeof(category)); } ast_app_group_list_unlock(); }