VirtualBox

Changeset 16812 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Feb 17, 2009 5:07:33 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42911
Message:

NAT: memset(,0,) => RTMemAllocZ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/tcp_subr.c

    r16562 r16812  
    186186    register struct tcpcb *tp;
    187187
    188     tp = (struct tcpcb *)RTMemAlloc(sizeof(*tp));
     188    tp = (struct tcpcb *)RTMemAllocZ(sizeof(*tp));
    189189    if (tp == NULL)
    190190        return ((struct tcpcb *)0);
    191191
    192     memset((char *) tp, 0, sizeof(struct tcpcb));
    193192    tp->t_maxseg = tcp_mssdflt;
    194193
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette