Fix implicit cast warning in get_all_headers().
And untangle assignment from check. Michael
This commit is contained in:
parent
3b6bc45c37
commit
1bfe8b6bea
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user