From: Tilghman Lesher Date: Mon, 24 Sep 2007 15:17:06 +0000 (+0000) Subject: Making change to group splitting, as discussed on the -dev list. The main X-Git-Tag: 1.4.12~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c95942b7f28aca31cc379e59fafe49c03639566;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@83637 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/app.c b/main/app.c index 697420dc12..d65ff53f7a 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);