Make sure the idText variable is empty, and put it in the right place for the manager...
authorJoshua Colp <jcolp@digium.com>
Mon, 9 Jul 2007 01:25:00 +0000 (01:25 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 9 Jul 2007 01:25:00 +0000 (01:25 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@73932 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index 9ad09a9..5305947 100644 (file)
@@ -2241,7 +2241,7 @@ static char mandescr_coresettings[] =
 static int action_coresettings(struct mansession *s, const struct message *m)
 {
        const char *actionid = astman_get_header(m, "ActionID");
-       char idText[150];
+       char idText[150] = "";
 
        if (!ast_strlen_zero(actionid))
                snprintf(idText, sizeof(idText), "ActionID: %s\r\n", actionid);
@@ -2260,8 +2260,8 @@ static int action_coresettings(struct mansession *s, const struct message *m)
                        "CoreCDRenabled: %s\r\n"
                        "CoreHTTPenabled: %s\r\n"
                        ,
+                       idText,
                        AMI_VERSION,
-                       idText,
                        ASTERISK_VERSION, 
                        ast_config_AST_SYSTEM_NAME,
                        option_maxcalls,