From e01cf6fb3a0d31a7a80465c0359207c9b163e76f Mon Sep 17 00:00:00 2001 From: Kevin Tran Date: Fri, 27 Apr 2012 21:07:12 +0100 Subject: [PATCH] [http] Fix typo in memory allocation Signed-off-by: Michael Brown --- src/net/tcp/httpcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/tcp/httpcore.c b/src/net/tcp/httpcore.c index f227e126..d0ad952e 100644 --- a/src/net/tcp/httpcore.c +++ b/src/net/tcp/httpcore.c @@ -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; }