trivial build fix (FSBUILD-174)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13877 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b8fe3c3273
commit
786c7710f1
|
@ -178,7 +178,7 @@ static void event_handler(switch_event_t *event)
|
|||
switch_core_hash_destroy(&globals.event_hash);
|
||||
globals.event_hash = NULL;
|
||||
switch_core_hash_init(&globals.event_hash, module_pool);
|
||||
bzero(globals.event_list, SWITCH_EVENT_ALL);
|
||||
memset(globals.event_list, 0, SWITCH_EVENT_ALL);
|
||||
if (load_config() != SWITCH_STATUS_SUCCESS) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Failed to reload config file\n");
|
||||
} else {
|
||||
|
@ -221,7 +221,7 @@ static void event_handler(switch_event_t *event)
|
|||
len = strlen(packet) + sizeof(globals.host_hash) + strlen((char*) MAGIC);
|
||||
#endif
|
||||
buf = malloc(len + 1);
|
||||
bzero(buf, len + 1);
|
||||
memset(buf, 0, len + 1);
|
||||
switch_assert(buf);
|
||||
memcpy(buf, &globals.host_hash, sizeof(globals.host_hash));
|
||||
|
||||
|
|
Loading…
Reference in New Issue