aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-24 15:17:06 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-24 15:17:06 +0000
commitda7b6d390b3cf6d9be0854543c36747071f6a8de (patch)
treeaf8000be6c7ca77bdab5f4f93e943ddb1e30310b
parentfd05752e3d9246dd92879880c5e6428e16de1b68 (diff)
Making change to group splitting, as discussed on the -dev list. The main
effect of this will be to permit Set(GROUP([cat])=), i.e. unsetting a group. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83637 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/app.c b/main/app.c
index 697420dc1..d65ff53f7 100644
--- a/main/app.c
+++ b/main/app.c
@@ -782,7 +782,7 @@ int ast_app_group_split_group(const char *data, char *group, int group_max, char
if (!ast_strlen_zero(grp))
ast_copy_string(group, grp, group_max);
else
- res = -1;
+ *group = '\0';
if (!ast_strlen_zero(cat))
ast_copy_string(category, cat, category_max);