]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Making change to group splitting, as discussed on the -dev list. The main
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 24 Sep 2007 15:17:06 +0000 (15:17 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 24 Sep 2007 15:17:06 +0000 (15:17 +0000)
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

main/app.c

index 697420dc125aa60e35d02ee73a78e109a12d7b4b..d65ff53f7a24297f62125ff896e08d2119e54656 100644 (file)
@@ -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);