Fix implicit cast warning in get_all_headers().

And untangle assignment from check.

Michael
This commit is contained in:
Michael Adam 2009-08-09 23:30:04 +02:00
parent 3b6bc45c37
commit 1bfe8b6bea

View File

@ -956,7 +956,8 @@ get_all_headers (int fd, hashmap_t hashofheaders)
/* /*
* Append the new line to the current header field. * 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 (header);
safefree (line); safefree (line);