From 6c9a647576c935da3edc66093174eb0855b2be3d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 10 Jan 2010 00:39:55 +0100 Subject: reqs:handle_connection: untangle assignment from check Michael --- src/reqs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/reqs.c b/src/reqs.c index 504b628..b583427 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -1352,7 +1352,8 @@ void handle_connection (int fd) /* * The "hashofheaders" store the client's headers. */ - if (!(hashofheaders = hashmap_create (HEADER_BUCKETS))) { + hashofheaders = hashmap_create (HEADER_BUCKETS); + if (hashofheaders == NULL) { update_stats (STAT_BADCONN); indicate_http_error (connptr, 503, "Internal error", "detail", -- cgit v1.2.3