http://git.etherboot.org
/
people
/
andreif
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fa85d1
)
convert to zalloc
author
Holger Lubitz
<hal@duncan.ol.sub.de>
Sun, 17 Jun 2007 23:25:15 +0000
(
01:25
+0200)
committer
Holger Lubitz
<hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 18:50:32 +0000
(20:50 +0200)
src/net/tcp/http.c
patch
|
blob
|
history
diff --git
a/src/net/tcp/http.c
b/src/net/tcp/http.c
index
f81a9b5
..
4a979ea
100644
(file)
--- a/
src/net/tcp/http.c
+++ b/
src/net/tcp/http.c
@@
-475,10
+475,9
@@
int http_open ( struct xfer_interface *xfer, struct uri *uri ) {
return -EINVAL;
/* Allocate and populate HTTP structure */
- http =
m
alloc ( sizeof ( *http ) );
+ http =
z
alloc ( sizeof ( *http ) );
if ( ! http )
return -ENOMEM;
- memset ( http, 0, sizeof ( *http ) );
http->refcnt.free = http_free;
xfer_init ( &http->xfer, &http_xfer_operations, &http->refcnt );
http->uri = uri_get ( uri );