mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-22 17:41:55 +00:00
[http] Fix typo in memory allocation
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
1fe27a3e0e
commit
e01cf6fb3a
@ -664,7 +664,7 @@ static void http_step ( struct http_request *http ) {
|
||||
|
||||
/* Allocate dynamic storage */
|
||||
dynamic = malloc ( sizeof ( *dynamic ) );
|
||||
if ( ! malloc ) {
|
||||
if ( ! dynamic ) {
|
||||
rc = -ENOMEM;
|
||||
goto err_alloc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user