From 1bfe8b6bea136d4ac39c58f9e7585fcfa38be225 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 9 Aug 2009 23:30:04 +0200 Subject: Fix implicit cast warning in get_all_headers(). And 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 d140be8..55de1f5 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -956,7 +956,8 @@ get_all_headers (int fd, hashmap_t hashofheaders) /* * Append the new line to the current header field. */ - if ((tmp = saferealloc (header, len + linelen)) == NULL) + tmp = (char *)saferealloc (header, len + linelen); + if (tmp == NULL) { safefree (header); safefree (line); -- cgit v1.2.3