提交 786c7710 authored 作者: Michael Jerris's avatar Michael Jerris

trivial build fix (FSBUILD-174)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13877 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b8fe3c32
......@@ -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));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论