[asterisk-commits] file: branch 1.4 r97697 - /branches/1.4/funcs/func_groupcount.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jan 10 09:07:13 CST 2008
Author: file
Date: Thu Jan 10 09:07:12 2008
New Revision: 97697
URL: http://svn.digium.com/view/asterisk?view=rev&rev=97697
Log:
Don't try to copy the category from the group if no category exists.
(closes issue #11724)
Reported by: IgorG
Patches:
group_count.v1.patch uploaded by IgorG (license 20)
Modified:
branches/1.4/funcs/func_groupcount.c
Modified: branches/1.4/funcs/func_groupcount.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/funcs/func_groupcount.c?view=diff&rev=97697&r1=97696&r2=97697
==============================================================================
--- branches/1.4/funcs/func_groupcount.c (original)
+++ branches/1.4/funcs/func_groupcount.c Thu Jan 10 09:07:12 2008
@@ -58,7 +58,8 @@
}
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();
}
More information about the asterisk-commits
mailing list