mirror of https://github.com/ipxe/ipxe.git
[http] Fix typo in memory allocation
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/6/head
parent
1fe27a3e0e
commit
e01cf6fb3a
|
@ -664,7 +664,7 @@ static void http_step ( struct http_request *http ) {
|
||||||
|
|
||||||
/* Allocate dynamic storage */
|
/* Allocate dynamic storage */
|
||||||
dynamic = malloc ( sizeof ( *dynamic ) );
|
dynamic = malloc ( sizeof ( *dynamic ) );
|
||||||
if ( ! malloc ) {
|
if ( ! dynamic ) {
|
||||||
rc = -ENOMEM;
|
rc = -ENOMEM;
|
||||||
goto err_alloc;
|
goto err_alloc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue