summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-09 23:30:04 +0200
committerMichael Adam <obnox@samba.org>2009-08-09 23:30:04 +0200
commit1bfe8b6bea136d4ac39c58f9e7585fcfa38be225 (patch)
tree35dd1a398a1ba6b4571f39cbf25703b4b7bc6364
parent3b6bc45c37c9b55330d24c502ad91cd73c2e2f5f (diff)
downloadtinyproxy-1bfe8b6bea136d4ac39c58f9e7585fcfa38be225.tar.gz
tinyproxy-1bfe8b6bea136d4ac39c58f9e7585fcfa38be225.zip
Fix implicit cast warning in get_all_headers().
And untangle assignment from check. Michael
Diffstat (limited to '')
-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);