http://git.etherboot.org
/
people
/
indolent
/
gpxe.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32e4ca8
)
convert to zalloc
author
Holger Lubitz
<hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 19:08:41 +0000
(21:08 +0200)
committer
Holger Lubitz
<hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 19:08:41 +0000
(21:08 +0200)
src/net/udp.c
patch
|
blob
|
history
diff --git
a/src/net/udp.c
b/src/net/udp.c
index
c6216d8
..
ad999c0
100644
(file)
--- a/
src/net/udp.c
+++ b/
src/net/udp.c
@@
-104,11
+104,10
@@
static int udp_open_common ( struct xfer_interface *xfer,
int rc;
/* Allocate and initialise structure */
- udp =
m
alloc ( sizeof ( *udp ) );
+ udp =
z
alloc ( sizeof ( *udp ) );
if ( ! udp )
return -ENOMEM;
DBGC ( udp, "UDP %p allocated\n", udp );
- memset ( udp, 0, sizeof ( *udp ) );
xfer_init ( &udp->xfer, &udp_xfer_operations, &udp->refcnt );
memcpy ( &udp->peer, st_peer, sizeof ( udp->peer ) );