summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/reqs.c3
1 files changed, 2 insertions, 1 deletions
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);