Bug 6862 - No need to initialize memory to zero twice
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
628537c7a8
commit
552fb750f0
|
@ -2358,7 +2358,6 @@ int init_manager(void)
|
|||
ast_log(LOG_NOTICE, "Unable to open management configuration manager.conf. Call management disabled.\n");
|
||||
return 0;
|
||||
}
|
||||
memset(&ba, 0, sizeof(ba));
|
||||
val = ast_variable_retrieve(cfg, "general", "enabled");
|
||||
if (val)
|
||||
enabled = ast_true(val);
|
||||
|
@ -2387,9 +2386,9 @@ int init_manager(void)
|
|||
if ((val = ast_variable_retrieve(cfg, "general", "httptimeout")))
|
||||
newhttptimeout = atoi(val);
|
||||
|
||||
memset(&ba, 0, sizeof(ba));
|
||||
ba.sin_family = AF_INET;
|
||||
ba.sin_port = htons(portno);
|
||||
memset(&ba.sin_addr, 0, sizeof(ba.sin_addr));
|
||||
|
||||
if ((val = ast_variable_retrieve(cfg, "general", "bindaddr"))) {
|
||||
if (!inet_aton(val, &ba.sin_addr)) {
|
||||
|
|
Loading…
Reference in New Issue