[asterisk-commits] tilghman: branch 1.4 r83773 - /branches/1.4/main/app.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 25 09:13:25 CDT 2007
Author: tilghman
Date: Tue Sep 25 09:13:25 2007
New Revision: 83773
URL: http://svn.digium.com/view/asterisk?view=rev&rev=83773
Log:
jmls pointed out that unsetting the group and setting the group to the blank string aren't quite the same.
Modified:
branches/1.4/main/app.c
Modified: branches/1.4/main/app.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/app.c?view=diff&rev=83773&r1=83772&r2=83773
==============================================================================
--- branches/1.4/main/app.c (original)
+++ branches/1.4/main/app.c Tue Sep 25 09:13:25 2007
@@ -814,8 +814,10 @@
}
}
AST_LIST_TRAVERSE_SAFE_END
-
- if ((gi = calloc(1, len))) {
+
+ if (ast_strlen_zero(group)) {
+ /* Enable unsetting the group */
+ } else if ((gi = calloc(1, len))) {
gi->chan = chan;
gi->group = (char *) gi + sizeof(*gi);
strcpy(gi->group, group);
More information about the asterisk-commits
mailing list