[Freeswitch-svn] [commit] r13902 - in freeswitch/trunk/src/mod/event_handlers: mod_erlang_event mod_event_multicast
FreeSWITCH SVN
andrew at freeswitch.org
Mon Jun 22 18:02:20 PDT 2009
Author: andrew
Date: Mon Jun 22 20:02:19 2009
New Revision: 13902
Log:
bzero -> memset (so mike won't yell at me)
Modified:
freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c
freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c
Modified: freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c (original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c Mon Jun 22 20:02:19 2009
@@ -1075,7 +1075,7 @@
session_elem_t* session_element = malloc(sizeof(*session_element));
switch_channel_t *channel = switch_core_session_get_channel(session);
- bzero(session_element, sizeof(*session_element));
+ memset(session_element, 0, sizeof(*session_element));
memcpy(session_element->uuid_str, switch_core_session_get_uuid(session), SWITCH_UUID_FORMATTED_LENGTH);
Modified: freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c (original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c Mon Jun 22 20:02:19 2009
@@ -496,7 +496,7 @@
tmp = malloc(len);
- bzero(tmp, len);
+ memset(tmp, 0, len);
switch_copy_string(uuid_str, packet, SWITCH_UUID_FORMATTED_LENGTH);
packet += SWITCH_UUID_FORMATTED_LENGTH;
More information about the Freeswitch-svn
mailing list