aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-09 01:25:00 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-09 01:25:00 +0000
commitf913b3ee0a360e6c6de44fa69c1ab05c8e5e3b5c (patch)
treee7c2827ffcc82a9b90cf81f8384dafa5d2508f73
parent9f0293c3b3e842096e24c7e5683191cf9dd0f187 (diff)
Make sure the idText variable is empty, and put it in the right place for the manager ack packet. (issue #10152 reported by srt)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@73932 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/manager.c b/main/manager.c
index 9ad09a906..53059479d 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -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,