Merged revisions 159976 via svnmerge from
authorSean Bright <sean@malleable.com>
Mon, 1 Dec 2008 23:37:49 +0000 (23:37 +0000)
committerSean Bright <sean@malleable.com>
Mon, 1 Dec 2008 23:37:49 +0000 (23:37 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r159976 | mvanbaak | 2008-12-01 11:08:36 -0500 (Mon, 01 Dec 2008) | 3 lines

  Get rid of the useless format string and argument in the Bogus/ manager channelname.
  Noted by kpfleming and name Bogus/manager suggested by eliel
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@160172 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index 0676d8d..7076f44 100644 (file)
@@ -1814,7 +1814,7 @@ static int action_getvar(struct mansession *s, const struct message *m)
 
        if (varname[strlen(varname) - 1] == ')') {
                if (!c) {
 
        if (varname[strlen(varname) - 1] == ')') {
                if (!c) {
-                       c = ast_channel_alloc(0, 0, "", "", "", "", "", 0, "Bogus/%p", SENTINEL);
+                       c = ast_channel_alloc(0, 0, "", "", "", "", "", 0, "Bogus/manager");
                        if (c) {
                                ast_func_read(c, (char *) varname, workspace, sizeof(workspace));
                                ast_channel_free(c);
                        if (c) {
                                ast_func_read(c, (char *) varname, workspace, sizeof(workspace));
                                ast_channel_free(c);