diff options
author | Michael Adam <obnox@samba.org> | 2009-08-09 23:30:04 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-08-09 23:30:04 +0200 |
commit | 1bfe8b6bea136d4ac39c58f9e7585fcfa38be225 (patch) | |
tree | 35dd1a398a1ba6b4571f39cbf25703b4b7bc6364 /src/reqs.c | |
parent | 3b6bc45c37c9b55330d24c502ad91cd73c2e2f5f (diff) |
Fix implicit cast warning in get_all_headers().
And untangle assignment from check.
Michael
Diffstat (limited to 'src/reqs.c')
-rw-r--r-- | src/reqs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |